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

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.

主站蜘蛛池模板: 平遥县| 海口市| 棋牌| 木里| 湘潭市| 新河县| 内江市| 和平县| 定远县| 翁源县| 马关县| 双城市| 建瓯市| 额济纳旗| 岫岩| 乳山市| 江阴市| 镶黄旗| 隆昌县| 大荔县| 乡宁县| 珠海市| 长顺县| 南乐县| 汝城县| 苏尼特左旗| 抚顺县| 河北区| 古交市| 大埔区| 张掖市| 盐源县| 康定县| 滁州市| 全椒县| 克什克腾旗| 宝丰县| 上高县| 古丈县| 保德县| 志丹县|