Hey, I’m quite new to web development and i’m trying to integrate plotly into my Django app.
The way I’m currently doing it is by creating a go.Figure(), adding a trace and layout, then converting it .to_html() and sending that to the frontend as a div.
I’m trying to set a configuration parameter but i’m not sure how to do so, as all the examples I see use the config dictionairy in the .show() function:
fig = go.Figure()
config = {'scrollZoom': True}
fig.add_trace(
go.Scatter(
x=[1, 2, 3],
y=[1, 3, 1]))
fig.show(config=config)
As I’m not using the .show() function, but converting the figure to an html object instead, how would i go about adding this parameter?
Thanks!