From e6386bdece6e688e572879424ddd52cbbde6f379 Mon Sep 17 00:00:00 2001 From: Manasvini B Suryanarayana Date: Thu, 22 Jun 2023 23:15:06 +0000 Subject: [PATCH] [Vis colors] Replace vis_type_timeline colors with `ouiPaletteColorBlind()` Signed-off-by: Manasvini B Suryanarayana --- CHANGELOG.md | 1 + .../public/helpers/panel_utils.ts | 14 ++------------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb8d55ee5cc..6eaafe9a57ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - [Table Visualization] Remove custom styling for text-align:center in favor of OUI utility class. ([#4164](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4164)) - Replace the use of `bluebird` in `saved_objects` plugin ([#4026](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4026)) - [Vis Colors] Update default color in TSVB to use `ouiPaletteColorBlind()[0]`([#4363](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4363)) +- [Vis Colors] Replace vis_type_timeline colors with `ouiPaletteColorBlind()` ([]()) ### 🔩 Tests diff --git a/src/plugins/vis_type_timeline/public/helpers/panel_utils.ts b/src/plugins/vis_type_timeline/public/helpers/panel_utils.ts index 35089811c08b..a7bcf0f7786e 100644 --- a/src/plugins/vis_type_timeline/public/helpers/panel_utils.ts +++ b/src/plugins/vis_type_timeline/public/helpers/panel_utils.ts @@ -32,6 +32,7 @@ import { cloneDeep, defaults, mergeWith, compact } from 'lodash'; import $ from 'jquery'; import moment, { Moment } from 'moment-timezone'; +import { euiPaletteColorBlind } from '@elastic/eui'; import { TimefilterContract } from 'src/plugins/data/public'; import { IUiSettingsClient } from 'opensearch-dashboards/public'; @@ -65,18 +66,7 @@ interface TimeRangeBounds { export const ACTIVE_CURSOR = 'ACTIVE_CURSOR_TIMELINE'; export const eventBus = $({}); -const colors = [ - '#01A4A4', - '#C66', - '#D0D102', - '#616161', - '#00A1CB', - '#32742C', - '#F18D05', - '#113F8C', - '#61AE24', - '#D70060', -]; +const colors = euiPaletteColorBlind(); const SERIES_ID_ATTR = 'data-series-id';