Skip to main content
100%

Revenue Bar Chart w/ transition

✓ Published1🌍 Public
AAdan Rodriguez
Last edited Feb 5, 2023
Created on Feb 3, 2023
Forked from D3 Starter

A dropdown menu lets viewers toggle between revenue and profit for seven months of data, updating a bar chart with smooth transitions. The chart uses D3 v7’s `scaleBand` and `scaleLinear` axes, with bars rendered as SVG `rect` elements. Changing the selection triggers a `transition` that animates bar heights and positions, while the exit state briefly turns bars red before removal.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes