diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts index deebe66e22..8e317023d8 100644 --- a/src/chart/line/LineView.ts +++ b/src/chart/line/LineView.ts @@ -132,7 +132,7 @@ function getStackedOnPoints( data: SeriesData, dataCoordInfo: ReturnType ) { - if (!dataCoordInfo.valueDim) { + if (dataCoordInfo.valueDim == null) { return []; } diff --git a/test/line-area-empty-dimension-name.html b/test/line-area-empty-dimension-name.html new file mode 100644 index 0000000000..9d0b41eb43 --- /dev/null +++ b/test/line-area-empty-dimension-name.html @@ -0,0 +1,60 @@ + + + + + Line Area Empty Dimension Name Test + + + + + + +
+ + + +