Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Adding Axes - Continuation of Making a Bar Chart with React & D3

Public visualization

Adding Axes - Continuation of Making a Bar Chart with React & D3

0 stars1🌍 Public
PPhronesis
Last edited Nov 17, 2021
Created on Nov 16, 2021

This example shows a bar chart of UN population data for 2020, rendered as an SVG using React and D3. It uses `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, with custom `AxisBottom` and `AxisLeft` components generating tick marks and labels via React's SVG elements. The chart highlights the use of `csv` to load data and `max` to compute the domain, with bars colored randomly from a predefined palette.

AI-generated description

Using React & D3 to render a bar chart of UN population data.

Comments

Sign in to join the discussion.

MIT Licensed