mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Custom threshold] Fix the custom equation label on the preview lens chart (#199618)
Fixes #181876
## Summary
This PR fixes the custom equation label on the preview lens chart.
|With label|Without label|With group by field|
|---|---|---|
||
This commit is contained in:
parent
13ae98602f
commit
8668757459
1 changed files with 4 additions and 1 deletions
|
@ -68,6 +68,7 @@ export interface RuleConditionChartExpressions {
|
|||
timeSize?: number;
|
||||
timeUnit?: TimeUnitChar;
|
||||
equation?: string;
|
||||
label?: string;
|
||||
}
|
||||
export interface RuleConditionChartProps {
|
||||
metricExpression: RuleConditionChartExpressions;
|
||||
|
@ -108,6 +109,7 @@ export function RuleConditionChart({
|
|||
threshold,
|
||||
comparator,
|
||||
equation,
|
||||
label,
|
||||
warningComparator,
|
||||
warningThreshold,
|
||||
} = metricExpression;
|
||||
|
@ -332,7 +334,7 @@ export function RuleConditionChart({
|
|||
const baseLayer = {
|
||||
type: 'formula',
|
||||
value: formula,
|
||||
label: formula,
|
||||
label: label ?? formula,
|
||||
groupBy,
|
||||
format: {
|
||||
id: formatId,
|
||||
|
@ -409,6 +411,7 @@ export function RuleConditionChart({
|
|||
comparator,
|
||||
dataView,
|
||||
equation,
|
||||
label,
|
||||
searchConfiguration,
|
||||
formula,
|
||||
formulaAsync.value,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue