diff --git a/src/chart/line/LineView.js b/src/chart/line/LineView.js index 86186cd58a5d99eae6d15947c92216463a3a0617..7fbae7010f1e1fabbb2e8652375008fe16f04fcf 100644 --- a/src/chart/line/LineView.js +++ b/src/chart/line/LineView.js @@ -523,8 +523,17 @@ define(function(require) { }, remove: function (ecModel) { + var group = this.group; + var oldData = this._data; this._lineGroup.removeAll(); this._symbolDraw.remove(true); + // Remove temporary created elements when highlighting + oldData && oldData.eachItemGraphicEl(function (el, idx) { + if (el.__temp) { + group.remove(el); + oldData.setItemGraphicEl(idx, null); + } + }); this._polyline = this._polygon =