portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.88k stars 596 forks source link

Colors in graph are too similar #2707

Open MichaelMure opened 2 years ago

MichaelMure commented 2 years ago

Is your feature request related to a problem? Please describe.

I find the time series hard to read because of the colors that are very similar. Here is an example where the generated palette is some variation of blue/violet/orange. Figuring out how which line match with the legend becomes a game of guessing which color match the most.

image

Describe the solution you'd like

A different algorithm to generate the palette would help a lot. There is some suggestion over here: https://softwareengineering.stackexchange.com/questions/198065/what-algorithms-are-there-for-picking-colors-for-plot-lines-on-graphs

It looks like the golden ratio algorithm would work quite well.

Describe alternatives you've considered

Another possibility (or rather, a complementary solution) would be to have some cue about which series is the closest to the mouse cursor in the tooltip window showing up when clicking on the graph.

image

funnym0nk3y commented 2 years ago

You have to keep in mind that the colors could (and in my opinion should) also represent the taxonomy of the asset.

grafik

flywire commented 11 months ago

You have to keep in mind that the colors could (and in my opinion should) also represent the taxonomy of the asset.

I don't agree. Unless displayed colours can be distinguished from each other the chart is useless. It would be useful to click on legend item(s) and have the line change to bold.