Fork of Activity6_Question 1.2
✓ Published1🌍 Public
This example displays a horizontal bar chart comparing the populations of 20 countries for the year 2010, using a bright green fill for the bars. The React application loads data from a remote CSV file via `d3.csv` and renders the visualization as an SVG. It uses D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with custom `AxisBottom`, `AxisLeft`, and `Marks` components. A tooltip showing the population in billions appears on hover, driven by the `<title>` element within each bar.
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. - bar chart by using the “Activity6_population” for 20 countries in year 2010
MIT Licensed