Skip to main content
100%

Question-1.1

✓ Published0🌍 Public
Rrahul.bonu524@gmail.com
Last edited Oct 19, 2024
Created on Oct 19, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of the top 10 countries by population for the year 2000. Using D3 v5 and React, the chart employs `scaleBand` and `scaleLinear` for positioning, with bars rendered as SVG `<rect>` elements from CSV data. The x-axis uses `format('.2s')` to abbreviate population values, converting 'G' to 'B' for billions, and each bar includes a tooltip via the `<title>` element. Axis ticks are labeled in blue, and the visualization is styled with the Poppins font.

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