BrianRuizy / covid19-dashboard

🦠 Django + Plotly Coronavirus dashboard. Powerful data driven Python web-app, with an awesome UI. Contributions welcomed! Featured on 🕶Awesome-list
https://covid-dashboard.herokuapp.com
MIT License
213 stars 176 forks source link

Linked plotly.js in the html templates and set include_plotlyjs=False #36

Closed Miguel-ASM closed 4 years ago

BrianRuizy commented 4 years ago

@Miguel-ASM, thank you for the PR. I see your changes passed checks, and deployed fine here. Can you just educate me a little on what modifying that argument will change? Thanks!

BrianRuizy commented 4 years ago

I think this issue is related to the way in which you render the plot_divs with the plot function in plots.py. The px.plot() function has a kwarg parameter include_plotlyjs which is by default set to True. This directly puts a lot of javascript in the divs, which makes the page slow. -@Miguel-ASM

Gitter