Disable double click unzoom

Hi,

Is there a way and how to disable the double click unzoom feature and also hide the double click to unzoom tooltip that appears when you zoom in the plot?

Basically, I want to enable zoom feature, but do not want the double clid to unzoom and hide the unzoom tooltip.

Thanks,

Here’s how: http://codepen.io/etpinard/pen/XNXKaM

2 Likes

Cool… Tried it out and it worked! One issue though is that the double-click to zoom back out still appears the first time i zoomed in the plot. Is there a way to disable/hide this as well? Thank you very much!

div.plotly-notifier {
  visibility: hidden;
}
2 Likes

For Python have something similar?

In Python, set config option “showTips” to False. Tested with Plotly version 6.0.0.

dcc.Graph(
    id="my_graph",
    config={
        "modeBarButtonsToRemove": [
            "select2d",
            "lasso2d",
            "toImage",
            "resetScale2d",
        ],
        "showTips": False, # Don't show pop-up messages
        "scrollZoom": True,
        "displaylogo": False
    },
)