Activity6_task-1 question1
✓ Published0🌍 Public
This example uses a horizontal bar chart to compare the year-2000 population of ten countries, with the bars ordered by country name. The chart is rendered as an SVG using React, and the code imports D3 functions like `scaleBand`, `scaleLinear`, `max`, and `format` from the `d3` package. It loads CSV data from a remote GitHub URL through a custom `useData` hook. The simple bar marks use D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with a title tooltip generated via D3's `format` function.
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