Hover effect


We've seen how powerful D3 is for transforming a dataset into an SVG path. For example, give it a radius and angle, and it can easily generate an arc path.

But how can we use this same data to draw the shape with canvas? Let’s explore.

Wip
4 minutes read

How to make a hover effect

Like this.

3540455055606570758085

A very basic area chart made using react and the area() function of d3.js