fix(line-chart): Formula Annotations on Line Charts are broken (#20687)

This commit is contained in:
Stephen Liu
2022-07-13 16:42:11 +08:00
committed by GitHub
parent bd6037ef50
commit acdb271422
7 changed files with 63 additions and 18 deletions

View File

@@ -226,7 +226,14 @@ export default function transformProps(
.forEach((layer: AnnotationLayer) => {
if (isFormulaAnnotationLayer(layer))
series.push(
transformFormulaAnnotation(layer, data1, colorScale, sliceId),
transformFormulaAnnotation(
layer,
data1,
xAxisCol,
xAxisType,
colorScale,
sliceId,
),
);
else if (isIntervalAnnotationLayer(layer)) {
series.push(