Skip to main content
100%

Activity 7

✓ Published0🌍 Public
Vvineelaramulapalli32
Last edited Jul 16, 2023
Created on Jul 16, 2023
Forked from Hello VizHub

This example shows a horizontal bar chart of population data for 20 countries in 2020, sourced from a CSV file. The chart uses React with D3 v5, employing `scaleBand` and `scaleLinear` for scales and rendering bars as SVG rectangles. The code loads data via `useData`, formats tick labels with `format('.2s')`, and includes axis components with blue tick lines and green bars, with a title tooltip on each rectangle.

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