Racing Bar Chart Animation Test
✓ Published2🌍 Public
A racing bar chart animation demonstrates changing quantitative values over time. Six named categories (alpha through foxtrot) increment their values by ten at random intervals, with each update triggering a smooth 750-millisecond transition of bar widths and labels using D3’s `select`, `scaleBand`, `scaleLinear`, and the `.join()` operation. Bars and text labels are rendered as SVG elements within a React component, driven by a custom `useInterval` hook that calls `setInterval` to update state. The chart uses D3 v5 and React, with data initially hardcoded in the app’s state.
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