Skip to content

Commit

Permalink
[Vis colors] Replace vis_type_timeline colors with `ouiPaletteColorBl…
Browse files Browse the repository at this point in the history
…ind()` (#4366) (#4376)

Signed-off-by: Manasvini B Suryanarayana <manasvis@amazon.com>
(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>
  • Loading branch information
1 parent 0ebc98a commit 578e86e
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/plugins/vis_type_timeline/public/helpers/panel_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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';

Expand Down

0 comments on commit 578e86e

Please sign in to comment.