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

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.

主站蜘蛛池模板: 奎屯市| 本溪市| 裕民县| 陵水| 绥化市| 龙游县| 盱眙县| 巩义市| 桐庐县| 蛟河市| 太谷县| 罗甸县| 晋宁县| 庐江县| 财经| 都江堰市| 都江堰市| 尤溪县| 西宁市| 靖西县| 淮安市| 察雅县| 大丰市| 五华县| 乌拉特后旗| 抚松县| 包头市| 华蓥市| 阿荣旗| 确山县| 海晏县| 五寨县| 象山县| 兴国县| 泸州市| 贵定县| 囊谦县| 鸡西市| 闸北区| 安吉县| 鸡西市|