Skip to main content
100%

activity_6 fork

✓ Published1🌍 Public
Aasimcyb@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from activity_6 fork

This example shows a horizontal bar chart ranking the populations of thirty countries in 2020, using a React component that renders an SVG. The code imports D3’s `scaleBand`, `scaleLinear`, `max`, `format`, and `csv` to load data from a GitHub-hosted CSV, scale the values, and create tick labels formatted in billions. Custom React components render the axes and marks, with bars colored green and blue tick lines, while a `<title>` element provides tooltips.

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