🌍 Public
Viewing a saved revision (read-only)
fce2154b9178494cb34ce50b81b638f3
Activity6q1
This bar chart displays population estimates for the year 2000 across ten selected countries, using horizontal bars where length encodes magnitude. The chart is rendered as an SVG via React, with scales built by `d3.scaleBand` and `d3.scaleLinear`. The `Marks` component draws each `<rect>` with a `<title>` tooltip; axes are generated by custom `AxisBottom` and `AxisLeft` components. The data is loaded from a CSV file using `d3.csv`, applying a custom row parsing function that multiplies the raw value by 1000 before slicing the top ten entries.
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.