Skip to main content
100%

Activity 6 Q 1.1

✓ Published0🌍 Public
RRukmini Devi Y
Last edited Oct 22, 2024
Created on Oct 22, 2024

This example displays a horizontal bar chart ranking the population of ten countries for the year 2000, using data loaded from a CSV file via `d3.csv`. The React application builds an SVG visualization with `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, formatting tick labels with `d3.format` to abbreviate large numbers. Bars are rendered as SVG rectangles with native `<title>` tooltips, while custom axis components handle the bottom and left tick generation.

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