mjordan / islandora_repository_reports

A Drupal 8 module that provides a collection of graphical reports on various aspects of an Islandora repository.
GNU General Public License v2.0
2 stars 5 forks source link

Color differentiation #17

Closed manez closed 4 years ago

manez commented 4 years ago

This is a pretty mild issue, since it can be easily resolved by just clicking "Go" again and rolling new colors, but it seems that once you get past 5 or 6 different things in one chart, the colors can start to collide a little:

image

image

mjordan commented 4 years ago

Since colors for pie charts are randomly generated, we're at the mercy of the Random Gods, who don't guarantee a distinct color pallate. But, we might be able to provide an option to use a predetermined list of colors that are distinguishable enough from their neighbors in the chart to avoid the effect you are describing. In other words, if you want random colors, you take a chance to getting whacked by the Random Gods' Random Hammer, but if you choose the predermined list of colors, you would be safe from the Random Hammer. Deluxe version of the predetermined choice would be to provide multiple color schemes and let the user choose their favorite.

mjordan commented 4 years ago

@manez my previous comment was pretty cryptic, so using less flamboyant language I'd like to propose that we add an admin option to use random colors in pie charts (like now) or to use a predetermined pallate. We can make sure the predetermined one has lots of variation. How does that sound?

manez commented 4 years ago

@mjordan an excellent way to evade the wrath of the Random Gods 😄

mjordan commented 4 years ago

Now there is an option to randomize colors in pie charts or not. To toggle it, go to Admin > Configuration > Islandora > Islandora Repository Reports.

manez commented 4 years ago

Tested it out. Works well, and no more half-lime-green charts (uness I feel like rolling the dice) 🎲

mjordan commented 4 years ago

Thanks!