Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
Jjiro2017
Last edited Sep 20, 2021
Created on Sep 20, 2021
Forked from Axes with react D3

This example presents a horizontal bar chart of United Nations population data for ten countries, sourced from a CSV file. It shows population values for 2020 using the D3 scale functions `scaleBand` and `scaleLinear` to map countries and populations to SVG coordinates. React components render the marks and axes, with `AxisBottom` drawing tick lines and labels, and `AxisLeft` displaying categorical labels. The chart is built declaratively, avoiding explicit loops, by mapping over scales and data within the component JSX.

AI-generated description

A program that loads in some data data about CSS named colors with D3 utilities, and uses React to render the data as a radial burst.

MIT Licensed

Similar vizzes