opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.69k stars 896 forks source link

[RFC] Deprecate "mapped" visualization colors in legacy visualizations #4466

Open joshuarrrr opened 1 year ago

joshuarrrr commented 1 year ago

There are a few straightforward ways to go about assigning categorical colors for the purpose of distinguishing different data series, assuming you have 10 well tested, distinguishable colors (which is what OUI gives us):

  1. Use the palette once: for each series assign one of the palette colors until you use them up - after that don’t distinguish by color (usually some grayscale value for all other series)
  2. Recycle the palette colors: for the 11th data series, simply use the 1st color. While 1, 11, and 21 are all the same color, they’re still easily distinguishable from all other nine colors
  3. Expand the palette to be as large as necessary: from the original 10 colors, programmatically generate other colors, shades or tints. As the number of series increases, it becomes increasingly difficult to distinguish between series that are technically different colors.

For most visualizations, the choice doesn’t matter a lot, because by the time you have 10 series represented in a single visualization, you likely already have legibility issues, and most sensible tools will guide you to other alternatives. However, OpenSearch Dashboards currently makes this problem much more common and important:

Additional notes

joshuarrrr commented 1 year ago

A more in-depth explanation of the current behavior of visualization color customization: https://www.youtube.com/watch?v=U8by9Qikkhg