diff --git a/src/chart/bar/BarView.js b/src/chart/bar/BarView.js index 01ad89974902c9c421f4f183ec0914b18736c605..7ee5fc5ba144b3422352a251cfe1c9a811d5d706 100644 --- a/src/chart/bar/BarView.js +++ b/src/chart/bar/BarView.js @@ -152,17 +152,15 @@ export default echarts.extendChartView({ _clear: function (ecModel) { var group = this.group; var data = this._data; - if (ecModel && ecModel.get('animation')) { - if (data) { - data.eachItemGraphicEl(function (el) { - if (el.type === 'sector') { - removeSector(el.dataIndex, ecModel, el); - } - else { - removeRect(el.dataIndex, ecModel, el); - } - }); - } + if (ecModel && ecModel.get('animation') && data && !this._isLargeDraw) { + data.eachItemGraphicEl(function (el) { + if (el.type === 'sector') { + removeSector(el.dataIndex, ecModel, el); + } + else { + removeRect(el.dataIndex, ecModel, el); + } + }); } else { group.removeAll(); diff --git a/src/chart/candlestick/CandlestickView.js b/src/chart/candlestick/CandlestickView.js index 511dcca4831eee4b309895ae8802562dcd9353cd..d2a96b832d44769d53012662b7a95743a13e52dc 100644 --- a/src/chart/candlestick/CandlestickView.js +++ b/src/chart/candlestick/CandlestickView.js @@ -39,11 +39,6 @@ var CandlestickView = ChartView.extend({ } }, - _clear: function () { - this.group.removeAll(); - this._data = null; - }, - _renderNormal: function (seriesModel) { var data = seriesModel.getData(); var oldData = this._data; @@ -129,12 +124,12 @@ var CandlestickView = ChartView.extend({ }, remove: function (ecModel) { - var group = this.group; - var data = this._data; + this._clear(); + }, + + _clear: function () { + this.group.removeAll(); this._data = null; - data && data.eachItemGraphicEl(function (el) { - el && group.remove(el); - }); }, dispose: zrUtil.noop diff --git a/test/-cases.js b/test/-cases.js index a5fb568715ee895516929810b364e7ebf601f4a6..38324e8c3dc1fe07bda3a03231dc3d2dc93f6451 100644 --- a/test/-cases.js +++ b/test/-cases.js @@ -41,6 +41,7 @@ 'scatter-gps.html', 'scatter-weibo.html', 'bar-stream-large.html', + 'bar-stream-large1.html', 'candlestick-large1.html', 'lines-flight.html', 'lines-stream-large.html', diff --git a/test/bar-stream-large.html b/test/bar-stream-large.html index 9164410d498cb536cbbe24fef68090eb0664eeb3..00fa0743f8fb7a93b2d7242d9672c3ae55490cfa 100644 --- a/test/bar-stream-large.html +++ b/test/bar-stream-large.html @@ -10,13 +10,15 @@
+