I am plotting graphs offline . I am using following function to plot graph offline . I am using flask for backend and sending data from flask to front end using JSON . Following is my code .
from plotly.offline import plot my_plot_div=plot(fig, output_type='div') return render_template('index.html', div_placeholder= Markup(my_plot_div) )
However my graph doesnot resizes as I resize my window . How can I improve ?