Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar chart

Public visualization

Making a Bar chart

0 stars0🌍 Public
Ggoshashi
Last edited May 19, 2020
Created on May 19, 2020
Forked from Making a Bar chart

This example shows a horizontal bar chart of population data for five countries, sorted by country name, with the bars colored steel blue. The chart uses React with D3 v5, loading data from a CSV file and rendering SVG elements. It employs `d3.scaleLinear` for the x-axis population scale, `d3.scaleBand` for the y-axis country categories, and `d3.axisLeft` and `d3.axisBottom` to generate the axes. The bars are appended as SVG `<rect>` elements, with their widths proportional to population values.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed