Activity6_Question1.1
✓ Published0🌍 Public
This example presents a horizontal bar chart comparing the population of ten countries in the year 2000. It uses D3 v5's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with the data loaded from a remote CSV file via D3's `csv` function. Two local ES6 modules, `AxisBottom` and `AxisLeft`, render the axes, while the `Marks` module draws green `rect` elements with interactive tooltips. The visualization is built with React, rendering to SVG, and includes a custom tick formatter that converts values to billions.
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