boogheta / coronavirus-countries

COVID-19 interactive dashboard for the whole world
https://boogheta.github.io/coronavirus-countries/
GNU Affero General Public License v3.0
55 stars 16 forks source link

Stronger color differences #51

Closed luciusf closed 3 years ago

luciusf commented 3 years ago

Since I'm at it, it would be great if the graph colors could be more easily be distinguished. It's sometimes nearly impossible to tell at which graph you are looking at.

Bildschirmfoto 2021-02-27 um 21 48 57

It appears countries have a fixed color. Maybe there could be an alternative, where a fixed palette of colors, beginning with the most different ones (straight blue, red, green, ..) which would then get sequentially assigned to a dataset only after it got selected. The downside is, that colors would change by the order in which you select sets. But for me, this would still lead to a better experience.

boogheta commented 3 years ago

I poundered a lot around this question and I decided in the end to set fixed colors by country to avoid inconsistencies when reloading, sharing screenshots or selecting/deselecting countries in a row. But what you're displaying is an unavoidable consequence of that choice which is not very nice either I agree. A solution that I can imagine would be to remain as such but let users change manually the color for each country by clicking the respective legend button, then maintain those user defined colors through url arguments. Would such a thing be an acceptable solution for you?

luciusf commented 3 years ago

Thanks for looking into this.

It depends on how you use the tool. I don't export pictures or share it with others. I mainly use it to get an idea of relations and tendencies. So I wouldn't even mind if colors change after a reload, as long as they are easily distinguishable.

Being able to change the colors myself, solves that! So my answer is: yes!

boogheta commented 3 years ago

oups forgot to persist user defined colors in the urls