Skip to main content
100%

Activity 7

✓ Published0🌍 Public
Ppardha1411
Last edited Jul 3, 2023
Created on Jul 3, 2023
Forked from Hello VizHub

A horizontal bar chart displays the population estimates for ten countries in 2010, with bars extending from a shared baseline. The visualization uses React with D3.js utility functions, including `d3.csv` for data loading, `scaleBand` for the categorical y-axis, and `scaleLinear` for the quantitative x-axis. SVG rendering constructs axes via custom `AxisBottom` and `AxisLeft` components, while hover tooltips are implemented through SVG `<title>` elements. The chart labels the x-axis and formats tick marks 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