Skip to main content
100%

bar chart example

✓ Published1🌍 Public
Zzjutkarma
Last edited Apr 20, 2022
Created on Mar 23, 2022
Forked from D3.js Intro

This example presents a horizontal bar chart comparing the populations of ten Chinese provinces, with populations listed in the data.csv file and scaled by a factor of 1000. The visualization uses D3.js v5 within a React framework, rendering to an SVG element. The code constructs linear and band scales, and employs `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to position bars and axes, with CSS styling for the bar fill color and text size.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes