WEEE-Open / sardina

Our developers' section stats, computed hic et nunc
3 stars 0 forks source link

Select pie chart colors randomly #17

Open e-caste opened 4 years ago

e-caste commented 4 years ago

Instead of having fixed colors, the pie charts could use some variety.
In particular, we need to keep the same color order (since it allows for a readable chart), but we can randomize the first color of the list (e.g. normally "Pink", "Blue", "Red" can also become "Blue", "Red", "Pink" and "Red", "Pink", "Blue", but never change order and become "Blue", "Pink", "Red").