Skip to main content
100%

Racing Bar Chart Animation Test

✓ Published2🌍 Public
Wwinner106
Last edited Mar 18, 2020
Created on Mar 18, 2020

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 description

Following along with Muri's Bar Chart tutorials.

This covers:

MIT Licensed

Similar vizzes