Making a Bar Chart
✓ Published1🌍 Public
This horizontal bar chart displays crop areas for six crop types, with each bar’s length proportional to its area value. The visualization uses D3 v5’s `csv` loader to read data, `scaleLinear` and `scaleBand` for positioning, and custom `axisBottom` and `axisLeft` axes. The code removes default axis domains, formats tick labels with `format('.3s')`, and colors bars steelblue via CSS.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.
MIT Licensed