Racing Bar Chart Animation Test
✓ Published3🌍 Public
TTom-S82
Last edited Mar 12, 2020
Created on Mar 9, 2020
Forked from Basic Bar Chart Animation Test (Fixed Data)
A racing bar chart animates six named categories as their values incrementally increase over time, with bars re-sorting by value and labels updating to show current distances. A React component renders SVG bars and text using d3-scale’s `scaleBand` and `scaleLinear`, while a custom `useInterval` hook triggers state updates every 750 milliseconds. The chart redraws with 750-millisecond transitions on the `rect` and `text` elements, and a start/stop button controls the animation loop.
AI-generated descriptionFollowing along with Muri's Bar Chart tutorials.
This covers:
- Attempting a racing bar chart
- Understanding custom react hook UseInterval
- useInterval Github
MIT Licensed