Skip to content

Commit e6386bd

Browse files
committed
[Vis colors] Replace vis_type_timeline colors with ouiPaletteColorBlind()
Signed-off-by: Manasvini B Suryanarayana <[email protected]>
1 parent 333e2b3 commit e6386bd

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5858
- [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))
5959
- Replace the use of `bluebird` in `saved_objects` plugin ([#4026](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4026))
6060
- [Vis Colors] Update default color in TSVB to use `ouiPaletteColorBlind()[0]`([#4363](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4363))
61+
- [Vis Colors] Replace vis_type_timeline colors with `ouiPaletteColorBlind()` ([]())
6162

6263
### 🔩 Tests
6364

src/plugins/vis_type_timeline/public/helpers/panel_utils.ts

+2-12
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { cloneDeep, defaults, mergeWith, compact } from 'lodash';
3232
import $ from 'jquery';
3333
import moment, { Moment } from 'moment-timezone';
3434

35+
import { euiPaletteColorBlind } from '@elastic/eui';
3536
import { TimefilterContract } from 'src/plugins/data/public';
3637
import { IUiSettingsClient } from 'opensearch-dashboards/public';
3738

@@ -65,18 +66,7 @@ interface TimeRangeBounds {
6566
export const ACTIVE_CURSOR = 'ACTIVE_CURSOR_TIMELINE';
6667
export const eventBus = $({});
6768

68-
const colors = [
69-
'#01A4A4',
70-
'#C66',
71-
'#D0D102',
72-
'#616161',
73-
'#00A1CB',
74-
'#32742C',
75-
'#F18D05',
76-
'#113F8C',
77-
'#61AE24',
78-
'#D70060',
79-
];
69+
const colors = euiPaletteColorBlind();
8070

8171
const SERIES_ID_ATTR = 'data-series-id';
8272

0 commit comments

Comments
 (0)