🌍 Public
Viewing a saved revision (read-only)
353760ac05704b2691109908d7bde6c6
Activity6_population
This example shows the 2020 population of various countries as a horizontal bar chart, with the bars ordered by country name and labeled with abbreviated values in billions. It is built with React and D3 v5, using `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `format` with the `.2s` specifier to convert tick labels from gigabytes to billions. The SVG rendering includes custom axis components and a tooltip format applied to bar 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.