lerouxsteyn / coronaviewer.com

CoronaViewer - Coronavirus (COVID-19) dashboard
0 stars 1 forks source link

keeping colours constant #1

Open davidmatten opened 4 years ago

davidmatten commented 4 years ago

Not really an issue - more of a feature observation. This might not be easy to do, but it would be great if it could be achieved. Lets say there are 3 countries displayed: [China, Italy, South Africa] And their colours are [blue, orange, green] Then a 4th country is ticked and added: Iran. The displayed legend order is alphabetical, and the order is now: [China, Iran, Italy, South Africa] and the colours then update to include red at the end: [blue, orange, green, red] Which means that China -> blue -> blue Iran - > NA -> orange Italy -> orange -> green SA -> green -> red

So, by adding 1 country, 2 (or 3 really) countries (in this example) changed their associated colour. This makes it non-trivial for a r00kie user to track a country. If a user thinks: "Ok, Italy is my country of interest... and its orange", then they add some other countries, they might still think: "Italy = orange". N00bs are bad at checking back to the legend.

It would be amazing is countries drawn maintain their colour while on the plot. But, I know this is non-trivial, and not important.

lerouxsteyn commented 4 years ago

Thank you for the detailed feedback, I have noticed this can be quite irritating. I will take a look at this.