Fork of Fork of Task-7
✓ Published1🌍 Public
This example presents a horizontal bar chart of 2020 population data for the top 30 countries, sourced from a CSV file. Built with React and D3 v5, it renders vector graphics as SVG elements. The visualization uses D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, with axes generated by custom `AxisBottom` and `AxisLeft` components. The bars are drawn as SVG rectangles, and hovering over each bar reveals a tooltip displaying the population value formatted in billions. The chart's title, "POPULATION-2020", is placed below the x-axis.
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