Skip to main content
100%

Activty 6 Question 1.1

✓ Published0🌍 Public
Kkesava
Last edited Oct 25, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a horizontal bar chart of population data for ten countries in the year 2000, sourced from a CSV file loaded via `d3.csv`. The React application uses `scaleBand` and `scaleLinear` from D3 v5 to position bars and axes, while rendering SVG elements through React components. Axis ticks are formatted with `d3.format` to abbreviate large numbers, and hover tooltips are provided via SVG `<title>` elements. The chart includes custom axis components and a labeled x-axis with styling defined in the HTML stylesheet.

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