We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like the mode bar can't be hidden in line charts with more than one trace (though it works fine for single trace charts).
Here's a minimal example:
<html> <body> <div id="plotly-div"></div> <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> <script> var trace1 = { x: [0, 1], y: [4, 5], type: "scatter"}; var trace2 = { x: [0, 1], y: [4, 5], type: "scatter"}; //var data = [trace1]; // This works: the mode bar gets removed. var data = [trace1, trace2]; // This doesn't work: the mode bar remains. Plotly.plot('plotly-div', data, {}, { displayModeBar: false }); </script> </body> </html>
I looked through the code a bit and thought that perhaps this has something to do with this comment.
The text was updated successfully, but these errors were encountered:
Bug confirmed. Thanks for reporting.
The problem is in the modebar manager. The logic here isn't quite right.
Working on a fix now.
Sorry, something went wrong.
cfb006c
Amazing. Thanks!.
No branches or pull requests
It looks like the mode bar can't be hidden in line charts with more than one trace (though it works fine for single trace charts).
Here's a minimal example:
I looked through the code a bit and thought that perhaps this has something to do with this comment.
The text was updated successfully, but these errors were encountered: