Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const metricVisFunction = (): MetricVisExpressionFunctionDefinition => ({
primaryPosition: {
types: ['string'],
help: i18n.translate('expressionMetricVis.function.primaryPosition.help', {
defaultMessage: 'The postion of the Primary Metric (top or bottom).',
defaultMessage: 'The position of the Primary Metric (top, middle, or bottom).',
}),
},
titleWeight: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,11 @@ describe('appearance settings', () => {

it.each<[PrimaryMetricPosition, string, PrimaryMetricPosition, string]>([
['top', 'Top', 'bottom', 'Bottom'],
['middle', 'Middle', 'bottom', 'Bottom'],
['bottom', 'Bottom', 'top', 'Top'],
['bottom', 'Bottom', 'middle', 'Middle'],
['middle', 'Middle', 'top', 'Top'],
['top', 'Top', 'middle', 'Middle'],
])(
'should set default config when changing from %j (%s) to %j (%s)',
(newPosition, newLabel, prevPosition, prevLabel) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,12 @@ const primaryMetricPositionOptions: Array<
defaultMessage: 'Top',
}),
},
{
id: 'middle',
label: i18n.translate('xpack.lens.metric.appearancePopover.middle', {
defaultMessage: 'Middle',
}),
},
{
id: 'bottom',
label: i18n.translate('xpack.lens.metric.appearancePopover.bottom', {
Expand Down
Loading