Nivo: Zoom in Pie slice onMouseEnter (ResponsivePie)

Created on 3 Dec 2020  路  3Comments  路  Source: plouc/nivo

Is your feature request related to a problem? Please describe.
Hi, first of all, great library! I'm still new to this so I'm not sure if I'm requesting an already existing feature. I've looked in several places but couldn't find a solution for the problem I'm having.

My goal is to slightly zoom in or pop out the slice when I'm either hovering over it or hovering over the relevant legend item. Like this,
image
image

Describe the solution you'd like
It'd be great to have an attribute to either increase the size of the slice of the pie onMouseEnter . Even though having the ability to specify the zoom level would be great, for now a fixed slight zoom would do the trick. and it should go back to the normal size onMouseLeave.

Describe alternatives you've considered
I'm not sure if I can achieve this via layers. If it is, can you direct me to a tutorial on how I can implement this?

pie

All 3 comments

It's been implemented in https://github.com/plouc/nivo/pull/1331 and is gonna be part of the next release (no ETA yet, sorry).

And it can be animated ;)

That is fantastic!! thank you so much! <3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pratikguru picture pratikguru  路  3Comments

PattieC4ke picture PattieC4ke  路  3Comments

Buvaneshkumar7 picture Buvaneshkumar7  路  3Comments

gcloeval picture gcloeval  路  3Comments

serendipity1004 picture serendipity1004  路  3Comments