Hi
I’m trying to add new button to the modebar using config options in dcc.Graph. However, the plot is not displayed properly in the web page.
tried looking at the browser console, got this:
Code I’m using:
dcc.Graph(config={'modeBarButtonsToAdd': [{
'name': 'test',
'icon': 'Plotly.Icons.disk',
'title': 'Export Chart Data',
'click': 'function(){window.alert();}'
}]
},
...)
Could someone help me with this please? sadly I have no exposure to javascript.
Thanks
BB