<head>
<!-- Plotly.js -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>
<body>
<div id="myDiv"><!-- Plotly chart will be drawn inside this DIV --></div>
<script>
<!-- JAVASCRIPT CODE GOES HERE -->
</script>
</body>
Plotly.newPlot(
'myDiv',
[
{ x: [1, 2, 3], y: [10, 20, 30], mode: 'lines'},
// don't want to uncomment this line to show Box Select
// { x: [2], y: [12], mode: 'markers'}
],
{}, // layout
{
displayModeBar: true,
// how to add button select2d
// modeBarButtonsToAdd: ['select2d'],
// this works normally
// modeBarButtonsToRemove: ['select2d'],
}
)
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.