Skip to main content
100%

Axes with React & D3

✓ Published1🌍 Public
TThomas Cormican
Last edited Jan 8, 2022
Created on Jan 8, 2022

This example displays a horizontal bar chart of the top 10 countries by population in 2020, sourced from a UN dataset. The visualization uses React to manage state and render SVG elements, while D3 v7 provides scales and tick generation for the axes. Custom axis components are built manually using `scaleBand`, `scaleLinear`, and `max` from D3, with tick lines and labels positioned via SVG transforms.

AI-generated description

A program that loads in some data about CSS named colors.

MIT Licensed

Similar vizzes