[Vis colors] Improve choropleth color scales and simplify palette generation logic to reduce maintenance #4326
Labels
next-theme
OUI compliance
Issues and PRs to maximize OUI usage and remove style and component hacks
unified visualization UX
OpenSearch Dashboards legacy map visualizations (Region Map, Coordinate map) use color schemas from
truncatedColorMaps
and getLegendColors(): https://github.com/opensearch-project/OpenSearch-Dashboards/blob/main/src/plugins/charts/public/static/color_maps/truncated_color_maps.ts#L33-L46See opensearch-project/oui#601 for visual examples and defaults.
Instead, we should use OUI's
colorPalette
service to generate similar palettes with OUI color variables as the source. We can also reduce the number of color stops to 20, and simplify much of the mapping. This is very similar to #4325, but with one distinct difference - the intended design was to not have white as one end of the range, but to have even the minimum value map to a particular hue.The text was updated successfully, but these errors were encountered: