Activity6_Task 1
✓ Published1🌍 Public
This example displays a bar chart of the 2020 population for 30 countries, ordered along a categorical y-axis with a linear x-axis. The visualization uses React to render SVG elements, with d3.scaleBand and d3.scaleLinear handling the scales, while custom React components (AxisBottom, AxisLeft, Marks) draw the axes and bars. The data is loaded from a remote CSV file using d3.csv, and tick labels are formatted in billions using d3.format.
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