Skip to content

Commit 578e86e

Browse files
[Vis colors] Replace vis_type_timeline colors with ouiPaletteColorBlind() (#4366) (#4376)
Signed-off-by: Manasvini B Suryanarayana <[email protected]> (cherry picked from commit d95504c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 0ebc98a commit 578e86e

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

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)