task1
✓ Published0🌍 Public
This example presents a horizontal bar chart of country populations for 2010, sourced from a CSV file loaded via d3.csv. The visualization uses React components to render SVG elements, with d3.scaleBand and d3.scaleLinear mapping country names and population values to screen coordinates. Custom AxisBottom and AxisLeft components generate tick marks and labels, while Marks draws the bars with tooltip formatting using d3.format. The chart includes an axis label and uses a Poppins font.
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