From 333e2b33e421f529a3f2c49c129f58d34640351f Mon Sep 17 00:00:00 2001 From: Manasvini B Suryanarayana Date: Thu, 22 Jun 2023 14:25:35 -0700 Subject: [PATCH] [Vis Colors] Update default color in TSVB to use `ouiPaletteColorBlind()[0]` (#4363) Signed-off-by: Manasvini B Suryanarayana --- CHANGELOG.md | 1 + src/plugins/vis_type_timeseries/public/metrics_type.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7502ed1191f..aeb8d55ee5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Remove unused Sass in `tile_map` plugin ([#4110](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4110)) - [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)) ### 🔩 Tests diff --git a/src/plugins/vis_type_timeseries/public/metrics_type.ts b/src/plugins/vis_type_timeseries/public/metrics_type.ts index 3562684a0b1..ed3ea21c25e 100644 --- a/src/plugins/vis_type_timeseries/public/metrics_type.ts +++ b/src/plugins/vis_type_timeseries/public/metrics_type.ts @@ -30,6 +30,7 @@ import { i18n } from '@osd/i18n'; +import { euiPaletteColorBlind } from '@elastic/eui'; // @ts-ignore import { metricsRequestHandler } from './request_handler'; import { EditorController } from './application'; @@ -53,7 +54,7 @@ export const metricsVisDefinition = { series: [ { id: '61ca57f1-469d-11e7-af02-69e470af7417', - color: '#68BC00', + color: euiPaletteColorBlind()[0], split_mode: 'everything', split_color_mode: 'opensearchDashboards', metrics: [