Skip to main content
100%

Activity6_Q1.1

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

This example displays a horizontal bar chart of population figures for ten countries in the year 2000, using SVG rendering within a React framework. The chart loads data from a CSV file via D3’s `csv` function and uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The `AxisBottom` and `AxisLeft` components generate tick marks and labels, while the `Marks` component renders rectangles whose widths encode population values, with hover tooltips provided by SVG `<title>` elements.

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