Export Image
Export Code

[04] Animated bar chart - Using React Hooks with D3

gjonor

Last edited Feb 22, 2020
Created on Feb 18, 2020

2020-w08-3

Tutorials by The Muratorium:

Using React (Hooks) with D3

  • [04] Animated bar chart
  • scaleBand for mapping categorical scale to bands
  • selection.transition() to animate properties
  • Flipping bars with transform scale -1 to animate the upper end
  • Linear scale color interpolation
  • scale.clamp() to limit interpolation at domain ends
MIT Licensed