Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of data visulization

Public visualization

Viewing a saved revision (read-only)

3ef0dfd462d9480294f3241f7b88c62f

Fork of Fork of data visulization

0 stars0🌍 Public
Yyingzhe-z
Last edited Apr 1, 2021
Created on Apr 1, 2021

This example shows a horizontal bar chart of country populations, using bar length to encode population values and vertical position to encode country names. The visualization renders as SVG with steel-blue bars and axes, drawing from a CSV file that is loaded asynchronously and preprocessed by multiplying population values by 1,000. The code uses D3 v6 APIs including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `max` within a React context, though the primary rendering is handled directly with D3 selections and SVG elements.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.