thermobased / flask-webapp

0 stars 0 forks source link

color the habits in the list to match area plot #14

Closed gnull closed 2 months ago

gnull commented 2 months ago

image

The user can't know right now which habits on the left correspond to which colors on the area chart. Would be nice if we could color them with matching colors to make the correspondence clear.

One solution I see is: pick a color for each habit (either permanently storing it in the DB, or on each page load) add it as the background color of each habit in the list, and also set it as the color of the corresponding area (Unovis allows that).

We can find an open-source color palette and assign colors from there to habits randomly (of let user pick). Here's an example.

Ivan

thermobased commented 2 months ago

done in 5168f43c89d677e8ae67179dae346271ffd1d7cc and 6ea6a01d5332732514a6aebfb5cf8d4af5af1708