Pie chart mouse hover to change color

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 !
1 answers

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,