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()`

Signed-off-by: Manasvini B Suryanarayana <manasvis@amazon.com>
  • Loading branch information
manasvinibs committed Jun 22, 2023
1 parent 333e2b3 commit 9071a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()` ([#4366](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/4366))

### 🔩 Tests

Expand Down
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 9071a46

Please sign in to comment.