Skip to main content
100%

Activity 7-2.2

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jun 28, 2023
Created on Jun 28, 2023
Forked from Hello VizHub

This example displays a horizontal bar chart ranking the population of ten countries in 2010, using green bars with blue tick marks and country labels on the left axis. It loads population data from a CSV file via `d3.csv`, then slices the first ten rows. The chart is built with React components, using `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis. SVG rendering with D3 v5 handles the visual output, including a formatted axis using `d3.format`.

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