🌍 Public
Viewing a saved revision (read-only)
39219460d85a4b5588f7fc015aae44e1
Activity8_Task-1
This example shows a horizontal bar chart of 2020 population data for 30 countries, with country names on the y-axis and population values on the x-axis, formatted in billions. The chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis, rendered as SVG rectangles via React. Data is loaded from a CSV file using D3’s `csv` parser, and axes are drawn with custom `AxisBottom` and `AxisLeft` components that style tick lines and labels.
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.