Skip to content

Commit

Permalink
💄 Distinct icons for XY and pie chart value labels toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Nov 9, 2020
1 parent 8560b2d commit 2d8c7b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { EuiIconLegend } from '../assets/legend';

const typeToIconMap: { [type: string]: string | IconType } = {
legend: EuiIconLegend as IconType,
values: 'number',
values: 'visText',
numeric: 'number',
};

export interface ToolbarPopoverProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export function XyToolbar(props: VisualizationToolbarProps<State>) {
title={i18n.translate('xpack.lens.xyChart.valuesLabel', {
defaultMessage: 'Values',
})}
type="values"
type="numeric"
groupPosition="left"
buttonDataTestSubj="lnsValuesButton"
isDisabled={!isValueLabelsEnabled && !isFittingEnabled}
Expand Down

0 comments on commit 2d8c7b4

Please sign in to comment.