Skip to main content
100%

Activity 6_Q1.2

✓ Published0🌍 Public
SSahithi.R
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Activity 6_Task 1

This example displays a horizontal bar chart of the populations of the top 20 countries in 2010, using a green fill for each bar. It uses React to render an SVG, with D3 v5 utilities such as `scaleBand` and `scaleLinear` for chart scales, and custom components for the axes and marks. Population data is loaded via `d3.csv` from a GitHub-hosted CSV file, and tooltips show the formatted value with a custom SI formatter.

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