Skip to main content
100%

task 8 q1

✓ Published0🌍 Public
Vvchittimadha@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This example visualizes the 2020 population estimates for 30 countries as a horizontal bar chart. Population values are loaded from a remote CSV file via `d3.csv`, with the y-axis ordered by country name using `d3.scaleBand` and the x-axis scaled linearly with `d3.scaleLinear`. The chart is rendered as SVG in a React app, using local AxisBottom, AxisLeft, and Marks components to draw axes and bars, with tooltips formatted using D3’s `format` function.

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