Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Aalesrinija
Last edited Aug 1, 2020
Created on Aug 1, 2020
Forked from Making a Bar Chart

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 description

This 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

Similar vizzes