Dataviz 2020_Ep22 - 15. The Margin Convention
✓ Published1🌍 Public
MMinwoo Pak
Last edited Jun 14, 2021
Created on Jun 12, 2021
A horizontal bar chart displays the top 10 countries by 2020 population from the UN World Population 2019 dataset. React manages the component state and renders the SVG, while D3 utilities load the CSV data with `csv`, and compute scales using `scaleBand` and `scaleLinear`. The chart applies a fixed margin convention, translating the inner group by 20 pixels on each side, and uses `max` to set the x-axis domain.
AI-generated descriptionA program that loads in the World Population 2019 data using D3 utilities, and uses both React & D3 to render the data (as a Bar Chart).
MIT Licensed