Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity6_Q1.2

Public visualization

Viewing a saved revision (read-only)

e50ec1c96ec5425ca358325ea7ddcbed

Fork of Activity6_Q1.2

0 stars0🌍 Public
SShiva Sai Reddy
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Activity6_Q1.1

This example displays a horizontal bar chart of 2010 population data for twenty countries, loaded from a CSV file. The chart uses React with D3 v5 scales and axes, including `scaleBand` for the y-axis and `scaleLinear` for the x-axis. SVG rectangles render the bars, with tooltips appearing on hover. The code imports D3 utilities like `csv`, `format`, and `max` to process and format the data, replacing 'G' with 'B' for billion labeling.

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.