Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/chart/line/LineView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,11 @@ class LineView extends ChartView {
// Remove previous created polyline
if (polyline) {
this._lineGroup.remove(polyline);
// endLabel is attached to the previous polyline, recreate it on the new one.
if (this._endLabel) {
polyline.removeTextContent();
this._endLabel = null;
}
}

polyline = new ECPolyline({
Expand Down
74 changes: 74 additions & 0 deletions test/ut/spec/series/line.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.