Ah, nice. Thanks. I had also just figured out I could explicitly define all buttons like this:
DEFAULT_CHART_CONFIG = {
'modeBarButtons': [
[
'toImage',
'sendDataToCloud',
'zoom2d',
'pan2d',
'zoomIn2d',
'zoomOut2d',
'autoScale2d',
'resetScale2d',
'toggleSpikelines',
'hoverClosestCartesian',
'hoverCompareCartesian'
]
]
}
# And then use it with all my graphs as so:
dcc.Graph(id='foo', config=DEFAULT_CHART_CONFIG)