Skip to main content
100%

Task 1 a

✓ Published0🌍 Public
Hhaneesh@gctc.in
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of population data for ten countries in the year 2000, with the bars sorted by country name. The visualization uses React to render SVG elements, with D3 v5 scales and formatting applied through `scaleBand`, `scaleLinear`, and `format`. The data is loaded from a CSV file using `d3.csv`, and axes are custom components built from SVG `<g>` elements. Hovering over a bar reveals a native tooltip with the formatted population value.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes