Skip to main content
100%

柱状图

✓ Published1🌍 Public
Lluojiandan
Last edited Apr 18, 2020
Created on Apr 18, 2020

This bar chart displays population estimates for six global regions in 2019, with horizontal bars ordered by region name. The visualization uses D3 v5 with SVG rendering, leveraging `scaleLinear` for the population axis and `scaleBand` for categorical region placement. Data is loaded from a CSV file via `d3.csv`, and population values are multiplied by 1000 before mapping to bar widths. Axes are generated with `axisLeft` and `axisBottom`, while rectangles represent each region’s population, styled with steelblue fill.

AI-generated description

柱状图测试,引用数据来源于各州2019的人口数据

2020年4月18日 步骤: 1、读取数据,并处理数据 2、分别创建坐标轴,创建坐标轴时,需要使用相应的比例尺 3、绘图:数据、辅助信息(坐标轴、标题) 4、绘图时,一般对要素进行分组处理,如:X轴(含注记)、Y轴(含注记) 5、通过鼠标右键,查看“检查”,获取元素信息,方便通过d3.select选择元素

MIT Licensed

Similar vizzes