Skip to main content
100%

Fork of E22 - axis with react and d3

✓ Published1🌍 Public
VVanessa
Last edited Mar 16, 2021
Created on Mar 8, 2021

This example shows a horizontal bar chart of trip volumes by region, rendered as an SVG with React components managing the visualization’s state and layout. The code loads CSV data via `d3.csv`, scales the bars with `d3.scaleBand` and `d3.scaleLinear`, and manually generates axis ticks and gridlines using `d3.axis`-style logic. React’s `useState` and `useEffect` hooks handle asynchronous data fetching, while D3 utilities compute the maximum value and tick positions for the chart.

AI-generated description

A program that loads in some using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes