Skip to main content
100%

Bar Display

✓ Published0🌍 Public
Ppengli1760
Last edited May 14, 2019
Created on May 7, 2019
Forked from Customizing Axes

This bar chart displays the top 10 most consumed foods by population, using horizontal bars sorted by value. The data comes from a CSV file with population estimates. The visualization uses d3.scaleLinear and d3.scaleBand to map values and categories, with customized axes via d3.axisBottom and d3.axisLeft. SVG rendering is handled through D3 selections, and tick labels are formatted using d3.format with a custom suffix replacement.

AI-generated description

This bar chart shows population of the top 10 most delicious foods countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes