Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6

Public visualization

Viewing a saved revision (read-only)

4557fef46e2648fba3ae2139d42c5c65

Activity-6

0 stars0🌍 Public
KKavyaEti
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example shows the populations of 30 countries in 2020 as horizontal bars. A bar chart uses a linear scale for population values on the x-axis and a band scale for country names on the y-axis. The visualization is rendered with React and D3 v5’s `scaleBand`, `scaleLinear`, and `format` APIs, drawing SVG rectangles as marks. Data loads from a CSV file, and tooltips display formatted population values.

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.