Skip to main content
100%

Activity6_Q1.2

✓ Published0🌍 Public
VVarshith Peddineni
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example shows a horizontal bar chart displaying the populations of 20 countries in 2010, sorted by country name. The visualization uses React to render SVG elements while leveraging D3’s scaleBand and scaleLinear for positioning and scaling. It loads population data from a CSV file via d3.csv and formats tick labels using d3.format. The bars are colored light green, with a blue axis line and gray text labels.

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