Pie chart mouse hover to change color

0
Hi again, I'm currently working on a pie chart. I want my pie chart to change color on mouse hovering. How to achieve that ? Thank you in advance !
asked
1 answers
4

Hi Phutharin,

Unfortunately the settings of Plotly don't offer out of the box functionality for this. Javascript is one option, but the other is using CSS. So you can do this by adding the following css line, off course you have to further optimize the code by adding a class to your piechart and only apply underlying line to that specific class only.

.surface:hover {fill: rgba(255, 255, 255, 0.1) !important;}

Kind Regards,

answered