Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of data visulization

Public visualization

Viewing a saved revision (read-only)

d731392149b348f1aed2d10a9bc3a51f

Fork of data visulization

0 stars1🌍 Public
Yyingzhe-z
Last edited Apr 1, 2021
Created on Apr 1, 2021
Forked from data visulization

This bar chart displays population data for six countries, sourced from a local CSV file, with each bar’s length proportional to the population value (scaled by 1,000). Using D3 v6, the code employs `d3.scaleLinear` for the x-axis, `d3.scaleBand` for categorical y-axis spacing, and `d3.axisLeft`/`d3.axisBottom` to render axes. The SVG is appended and styled via CSS, with margins applied to position the chart within a 960×500 viewport.

AI-generated description

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

See also React Starter.