Skip to content

Commit

Permalink
import default axis color from elastic-charts
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed Nov 30, 2021
1 parent fa78361 commit 4e1d60b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { uniq, mapValues } from 'lodash';
import type { PaletteOutput, PaletteRegistry } from 'src/plugins/charts/public';
import type { Datatable } from 'src/plugins/expressions';
import { euiLightVars } from '@kbn/ui-shared-deps-src/theme';
import { LIGHT_THEME } from '@elastic/charts';
import type { AccessorConfig, FramePublicAPI } from '../types';
import { getColumnToLabelMap } from './state_helpers';
import { FormatFactory, LayerType, layerTypes } from '../../common';
Expand All @@ -25,7 +26,11 @@ interface LayerColorConfig {
}

export const defaultReferenceLineColor = euiLightVars.euiColorDarkShade;
export const defaultAxisLineColor = '#eaeaea'; // TODO - get this from somewhere
export const {
axes: {
axisLine: { stroke: defaultAxisLineColor },
},
} = LIGHT_THEME;

export type ColorAssignments = Record<
string,
Expand Down

0 comments on commit 4e1d60b

Please sign in to comment.