Black Lives Matter. Please consider donating to Black Girls Code today.

Update config function?

How can I update configuration for existing graph, eg. for changing the locale?

In the documentation there are update methods for layout and trace data but none for update configuration.

Thanks
Filip

Plotly.plot('graph', [], {}, {/* new config options */})

or

Plotly.react('graph', [], {}, {/* new config options */})

should do the trick.

1 Like

Updating configuration with changed localization works for date format (ticks on axis) but not for modeBar buttons. Is there something else to update in config?

Try it yourself here - it starts in DE. Then the locale is switched to EN. The dates are updated but the mode bar buttons remain in DE