Bar graphs
✓ Published0🌍 Public
This bar chart displays the population of 20 countries for 2020, with countries on the y-axis and population on the x-axis. Built with React and D3 v5, the visualization uses `scaleBand` and `scaleLinear` to map data to SVG rectangles. The code loads CSV data from a gist, formats population values using D3's `format` function, and includes custom axis components that render red tick lines. The chart title reads “POPULATION-2020,” and hover tooltips show formatted population values.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed