Fork of Task 8_Task 1
✓ Published1🌍 Public
This example displays a horizontal bar chart comparing the population figures from the year 2000 for the top ten countries. It uses a tabular dataset loaded from a GitHub-hosted CSV file. The visualization renders bars as SVG rectangles within a React framework, with the chart axes and tick marks generated through custom D3 components. The x-axis applies a linear scale with a custom formatter that converts very large numbers into a readable "B" (billion) suffix. The y-axis uses a band scale to position categorical country labels. Hovering over a bar triggers a native tooltip, showing the specific population value.
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