Skip to content

[Vis colors] Improve choropleth color scales and simplify palette generation logic to reduce maintenance #4326

Open
@joshuarrrr

Description

@joshuarrrr

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-L46

See 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions