Skip to main content
100%

Bar chart

✓ Published2🌍 Public
JJordy Fronik
Last edited Nov 3, 2020
Created on Nov 2, 2020
Forked from Hello VizHub

This example displays a horizontal bar chart ranking the top 10 most populous countries, using population data loaded from a CSV file via `d3.csv`. The chart uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and renders bars as SVG `rect` elements. Axes are generated with `d3.axisLeft` and `d3.axisBottom`, with tick formatting applied through `d3.format` to abbreviate numbers. The visualization is built with React, D3 v6, and SVG rendering.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes