<head>
  <!-- Plotly.js -->
  <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>

<div id="myDiv" style="width:100%;"></div>
var trace1 = {
  x:['trees', 'flowers', 'hedges'], 
	y: [90, 130, 40],
	type: 'bar'
};

var data = [trace1];
var layout = {
	title: 'Remove Modebar Buttons',
	showlegend: false};
Plotly.newPlot('myDiv', data, layout, {modeBarButtonsToRemove: ['toImage']});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.