Fork of Making a Bar Chart
✓ Published0🌍 Public
This example shows a bar chart of the top 10 most populous countries based on 2018 United Nations estimates, with population values loaded from a CSV file. It demonstrates customized D3 v5 axes and scales, using `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. The code initializes SVG rectangles at fixed dimensions, though the chart’s rendering is not fully implemented in the provided `render` function. Data is parsed with `d3.csv` and displayed via `d3.axisLeft` and `d3.axisBottom`.
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