Fork of E22 - axis with react and d3
✓ Published1🌍 Public
VVanessa
Last edited Mar 16, 2021
Created on Mar 8, 2021
Forked from E22 - the Margin Convention on Basic Bar Chart
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 descriptionA program that loads in some using D3 utilities, and uses React to render the data as a radial burst!
MIT Licensed