Fork of ICE-6 Tutorial Bar Chart
✓ Published0🌍 Public
This bar chart displays the prices of various pizzas, with each bar representing a pizza name and its price. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map price values and categories, while `axisBottom` and `axisLeft` generate the axes. Data is loaded from a CSV file via `d3.csv`, and the chart is rendered as an SVG. The code also customizes axis tick formatting and removes gridlines, with the source data based on 2018 United Nations population estimates.
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