Task 1b
✓ Published0🌍 Public
This example shows a horizontal bar chart of the 2010 populations of 20 countries. The chart uses SVG for rendering, with a React front-end. It loads data from a CSV file hosted on GitHub and uses D3 v5 for scaling, formatting, and calculating the layout. The visualization highlights D3's `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `format` for tick labels. A tooltip appears when hovering over each bar, displaying the population value. The chart is styled with CSS rules for tick marks and bar colors.
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