Skip to main content
100%

question 1.1

✓ Published0🌍 Public
Hharsha13638@gmail.com
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart ranking the populations of ten countries in the year 2000, using a dataset loaded via `d3.csv`. Green rectangles (`<rect>`) represent population values on a linear scale, with countries on a band scale and a formatted tick axis converting values to billions. Built with React and D3 v5, it uses `scaleBand`, `scaleLinear`, and `max` from D3 to compute scales, while `AxisBottom`, `AxisLeft`, and `Marks` are local ES6 modules rendering SVG elements. The chart includes a loading state and SVG tooltips via `<title>` elements.

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