-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugsomething brokensomething broken
Description
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.
Metadata
Metadata
Assignees
Labels
bugsomething brokensomething broken