Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Basic Bar Chart Animation Test (Fixed Data)

Public visualization

Basic Bar Chart Animation Test (Fixed Data)

0 stars1๐ŸŒ Public
TTom-S82
Last edited Feb 23, 2020
Created on Feb 18, 2020

A bar chart in React animates changes to its data values and color scale. Users can adjust the displayed values through buttons that increment, decrement, filter, or add random data points. Built with D3 v5, the visualization uses `scaleBand` and `scaleLinear` for axes, while `transition` animates bar heights and fill colors over 1000 milliseconds. Hovering over a bar reveals its value via a tooltip with a 500-millisecond animation. The chart renders in SVG, with axes positioned using `axisBottom` and `axisRight`.

AI-generated description

Following along with Muri's Bar Chart tutorials.

This covers:

  • Transitioning changes to values and colorscale
  • Displaying the value of a line on hover
  • Adding Randomised data to the chart

Comments

Sign in to join the discussion.

MIT Licensed