d3pie
d3pie copied to clipboard
Make cursor configurable
Nice work on this d3 plugin!
I'm using the onClickSegment callback to get notified when the user clicks on a pie slice.
This all works fine, but the click will take them to a new page, so ideally I'd like to be able to change the cursor on hover to cursor: pointer.
Is there any way to do that through the configuration or do I need to fall back to custom CSS?
CSS should do the trick!
I've got the job done as follow, anything better feel free to suggest:
[class*="pieChart"] { cursor: pointer; }