Plotly disable modebar #1823
kevin-kurniawan
announced in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I'm now developing a web portal for my company using Reflex but I'm having a hard time removing the modebar in Plotly graph. So what I've done now is to remove the modebar options with "layout" argument in rx.plotly and I specify the "modebar": {"remove": plotly_remove_all}
plotly_remove_all = ["autoScale2d", "autoscale", "editInChartStudio", "editinchartstudio", "hoverCompareCartesian",
"hovercompare", "lasso", "lasso2d", "orbitRotation", "orbitrotation", "pan", "pan2d", "pan3d",
"reset", "resetCameraDefault3d", "resetCameraLastSave3d", "resetGeo", "resetSankeyGroup",
"resetScale2d", "resetViewMapbox", "resetViews", "resetcameradefault", "resetcameralastsave",
"resetsankeygroup", "resetscale", "resetview", "resetviews", "select", "select2d",
"sendDataToCloud", "senddatatocloud", "tableRotation", "tablerotation", "toImage", "toggleHover",
"toggleSpikelines", "togglehover", "togglespikelines", "toimage", "zoom", "zoom2d", "zoom3d",
"zoomIn2d", "zoomInGeo", "zoomInMapbox", "zoomOut2d", "zoomOutGeo", "zoomOutMapbox", "zoomin",
"zoomout"]
However, with this code, I still have the plotly logo when I hover on the graph like below screenshot
Could anyone help me to completely remove this modebar? And is there any way of doing this? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions