Skip to main content
100%

Axes with React & D3

✓ Published1🌍 Public
Kkosakase
Last edited Aug 4, 2021
Created on Jul 14, 2021

This example uses React with D3 to display a horizontal bar chart of 2019 UN population data for the top ten countries. It loads the CSV data with the `csv` utility, scales the population values with `scaleLinear` for the x-axis and country names with `scaleBand` for the y-axis, and renders SVG rectangles for the bars. The chart’s axes are drawn using D3’s scale methods, with tick labels positioned via SVG text elements. Rendering is handled through React state and the `ReactDOM.render` method.

AI-generated description

A program that loads in some [data about CSS named colors] (https://developer.mozilla.org/en-US/docs/Web/CSS/color_value) using D3 utilities, and uses React state to render the data as a radial burst.

MIT Licensed

Similar vizzes