How do I disable the default click interaction in the Plotly Pie Chart?

  • Goal: I would like for users who click the pie chart to not see the rest of the options grey out.

  • Steps: I went through plotly's documentation and found the clickmode property. Setting it to an empty string or 'none' works for this purpose on bar and line charts, but the clickmode variable doesn't change the effect of clicking into the pie chart.

  • Details: I am using the cloud hosted version of retool

Additionally, for all plotly charts, how do you remove the point hover mouse icon from plotly charts in general

Hi @Daniel_Fleuranvil, I have not personally disabled the click interaction but it looks like it's possible:

Hi @Paulo ,
The solution you linked to is using the clickmode parameter on a plotly bar chart. My issue is that the clickmode variable doesn't work for the pie charts in plotly.

Hi @Daniel_Fleuranvil, I just tested it on my end and it does look like a bug.
These top level key value pairs:

{
...
  "clickmode": "none",
  "dragmode": "none",
...
}

They work on the Bar chart but not on the Pie chart. I created a bug report for this issue. We'll update you here when it's fixed.

1 Like