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

World map performance improvements #57

Closed LeoHerrmann closed 4 years ago

LeoHerrmann commented 4 years ago

I have made some changes to improve the performance of the world map (#55):

These changes contribute to a considerable reduction of loading times on all pages as well as the lighthouse performance score of index.html finally being in the double-digits!

There have also been some small visual changes: First of all, the marker colors look a little different now because I couldn't find a simple way of implementing them the same way as they were before. Furthermore, the layout of the labels which appear when hovering over a marker has been slightly tweaked. If you want, I could try replicating the previous look again.

Before: screenshot before

After: screenshot after

LeoHerrmann commented 4 years ago

I gave myself another try to replicate the previous color scale. The result isn't perfect but it is pretty close:

Screenshot_2020-09-04 COVID-19 Dashboard Home

What do you think?

BrianRuizy commented 4 years ago

Looks good! @Rahmsauce Did add those changes to this pr?

LeoHerrmann commented 4 years ago

Thanks! Yes, I did.