d3/d3-shape

How to add pointer effect to the shape?

dotku opened this issue · 1 comments

dotku commented

eg when user handover the curve, mouse would display pointer ({cursor: pointer})?

Fil commented

The role of d3-shape is to create shapes. What you do with them is out of scope.

For example, if you use the shape to draw a path in svg, you can set its css with d3-selection like so:

 d3.create("path").attr("d", shape).style("cursor", "pointer")