官术网_书友最值得收藏!

Visualizing our first data

So far we've seen the basics of how D3 works. In this last section of this first chapter, we'll create a simple visualization of some real data. We're going to visualize the popularity of baby names in the USA. The final result will look this:

As you can see in this figure, we create pink bars for the girl names, blue bars for the boy names, and add an axis at the top and the bottom, which shows the number of times that name was chosen. The first thing, though, is take a look at the data.

主站蜘蛛池模板: 万荣县| 黄石市| 安义县| 兴业县| 调兵山市| 泰来县| 泗洪县| 集安市| 乌什县| 军事| 合山市| 哈巴河县| 成都市| 吴川市| 德州市| 威海市| 高州市| 鲁甸县| 新丰县| 慈利县| 剑川县| 平阴县| 菏泽市| 桂平市| 古浪县| 广宁县| 闸北区| 呼玛县| 稻城县| 安阳市| 宣汉县| 澜沧| 商河县| 安陆市| 科技| 平潭县| 博客| 石景山区| 洪泽县| 明溪县| 闵行区|