feat: derived metrics use different line style (#20242)

This commit is contained in:
Yongjie Zhao
2022-06-05 21:17:31 +08:00
committed by GitHub
parent dd4b581fb5
commit 7faf874c1b
16 changed files with 161 additions and 10 deletions

View File

@@ -87,6 +87,7 @@ export function transformSeries(
seriesKey?: OptionName;
sliceId?: number;
isHorizontal?: boolean;
lineStyle?: LineStyleOption;
},
): SeriesOption | undefined {
const { name } = series;
@@ -183,8 +184,8 @@ export function transformSeries(
}
}
const lineStyle = isConfidenceBand
? { opacity: OpacityEnum.Transparent }
: { opacity };
? { ...opts.lineStyle, opacity: OpacityEnum.Transparent }
: { ...opts.lineStyle, opacity };
return {
...series,
yAxisIndex,