Skip to main content
100%

Axes with React & D3

✓ Published1🌍 Public
Aazharahmad0
Last edited Mar 26, 2021
Created on Mar 26, 2021

This example presents a horizontal bar chart of the top ten most populous countries for 2020, rendered as SVG via React. It uses D3 v5 utilities (`d3.csv`, `scaleBand`, `scaleLinear`, `max`) to load and transform data from a GitHub-hosted CSV, then draws axes and bars with JSX elements. The x-axis ticks are generated from the linear scale, while y-axis labels align with band positions, all translated inside a margin group.

AI-generated description

A program that loads in some data about css named colors using D3 utitilities, and uses React render the data.

MIT Licensed

Similar vizzes