Skip to main content
100%

5: Axes with React & D3

✓ Published1🌍 Public
HHumanistic Quality Management
Last edited Jun 18, 2023
Created on Jun 18, 2023

This example uses React 16.9 to render a horizontal bar chart of the top ten countries by 2020 population, sourced from a CSV file of UN population data. The chart displays axes with tick marks and labels, built using D3 v7’s `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. D3 `max` calculates the domain, and the bars are drawn as SVG rectangles within a transformed `<g>` group.

AI-generated description

A program that loads in some [data about CSS named colors] using d3 utilitiens, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes