diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts index 493c17d186..45414fb386 100644 --- a/src/chart/line/LineView.ts +++ b/src/chart/line/LineView.ts @@ -947,8 +947,8 @@ class LineView extends ChartView { if (this._clipShapeForSymbol && !this._clipShapeForSymbol.contain(x, y)) { return; } - const zlevel = seriesModel.get('zlevel'); - const z = seriesModel.get('z'); + const zlevel = seriesModel.get('zlevel') || 0; + const z = seriesModel.get('z') || 0; symbol = new SymbolClz(data, dataIndex); symbol.x = x; symbol.y = y; diff --git a/test/line-case.html b/test/line-case.html index aa54d7c77c..8d76e8e412 100644 --- a/test/line-case.html +++ b/test/line-case.html @@ -41,6 +41,7 @@
+
@@ -610,6 +611,39 @@ }); + + diff --git a/test/runTest/actions/__meta__.json b/test/runTest/actions/__meta__.json index 473fa64b8f..388c569e03 100644 --- a/test/runTest/actions/__meta__.json +++ b/test/runTest/actions/__meta__.json @@ -121,7 +121,7 @@ "line-animation": 1, "line-animation-update": 3, "line-boldWhenHover": 1, - "line-case": 1, + "line-case": 2, "line-crash": 1, "line-endLabel": 1, "line-sampling": 2, @@ -189,8 +189,8 @@ "tooltip-valueFormatter": 3, "tree-image": 1, "tree-legend": 1, - "tree-radial": 2, "tree-polyline": 1, + "tree-radial": 2, "treemap-action": 3, "treemap-disk": 3, "treemap-disk2": 3, diff --git a/test/runTest/actions/line-case.json b/test/runTest/actions/line-case.json index 318b5d1ac1..3de8815477 100644 --- a/test/runTest/actions/line-case.json +++ b/test/runTest/actions/line-case.json @@ -1 +1 @@ -[{"name":"Action 1","ops":[{"type":"mousedown","time":264,"x":423,"y":226},{"type":"mouseup","time":353,"x":423,"y":226},{"time":354,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":426,"x":425,"y":227},{"type":"mousemove","time":626,"x":456,"y":261},{"type":"mousemove","time":826,"x":499,"y":322},{"type":"mousedown","time":936,"x":499,"y":322},{"type":"mousemove","time":1027,"x":495,"y":317},{"type":"mousemove","time":1231,"x":443,"y":252},{"type":"mouseup","time":1403,"x":443,"y":251},{"time":1404,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1493,"x":443,"y":251},{"type":"mousemove","time":1976,"x":443,"y":251},{"type":"mousemove","time":2180,"x":455,"y":233},{"type":"mousemove","time":2393,"x":455,"y":231},{"type":"mousedown","time":2469,"x":455,"y":231},{"type":"mouseup","time":2532,"x":454,"y":231},{"time":2533,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2593,"x":454,"y":231}],"scrollY":1268,"scrollX":0,"timestamp":1641536392159}] \ No newline at end of file +[{"name":"Action 1","ops":[{"type":"mousedown","time":264,"x":423,"y":226},{"type":"mouseup","time":353,"x":423,"y":226},{"time":354,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":426,"x":425,"y":227},{"type":"mousemove","time":626,"x":456,"y":261},{"type":"mousemove","time":826,"x":499,"y":322},{"type":"mousedown","time":936,"x":499,"y":322},{"type":"mousemove","time":1027,"x":495,"y":317},{"type":"mousemove","time":1231,"x":443,"y":252},{"type":"mouseup","time":1403,"x":443,"y":251},{"time":1404,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":1493,"x":443,"y":251},{"type":"mousemove","time":1976,"x":443,"y":251},{"type":"mousemove","time":2180,"x":455,"y":233},{"type":"mousemove","time":2393,"x":455,"y":231},{"type":"mousedown","time":2469,"x":455,"y":231},{"type":"mouseup","time":2532,"x":454,"y":231},{"time":2533,"delay":400,"type":"screenshot-auto"},{"type":"mousemove","time":2593,"x":454,"y":231}],"scrollY":1268,"scrollX":0,"timestamp":1641536392159},{"name":"Action 2","ops":[{"type":"mousemove","time":556,"x":40,"y":566},{"type":"mousemove","time":757,"x":172,"y":441},{"type":"mousemove","time":963,"x":180,"y":424},{"type":"mousemove","time":1290,"x":180,"y":425}],"scrollY":1726,"scrollX":0,"timestamp":1655695727357}] \ No newline at end of file