Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Bar chart

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed