we cant use Plotly.newPlot(‘myDiv’, data, layout,{displaylogo :false},{
modeBarButtons: [[{
name: ‘Save and Edit in cloud’,
icon: Plotly.Icons.disk,
click: function() {
var size = randomArray();
Plotly.restyle(‘graph’, ‘marker.size’, [size]);
}
}], [
‘zoom2d’,
‘pan3d’,
‘zoomInGeo’,
‘zoomOutGeo’,
‘autoScale2d’,
‘resetScale2d’,
‘hoverClosest3d’,
‘hoverCompareCartesian’
]]
});