diff --git a/src/chart/line/LineView.ts b/src/chart/line/LineView.ts index fa4b3a95a7..bb4dd76508 100644 --- a/src/chart/line/LineView.ts +++ b/src/chart/line/LineView.ts @@ -1290,17 +1290,18 @@ class LineView extends ChartView { next = turnPointsIntoStep(diff.next, coordSys, step); stackedOnNext = turnPointsIntoStep(diff.stackedOnNext, coordSys, step); } - // Don't apply animation if diff is large. // For better result and avoid memory explosion problems like // https://github.com/apache/incubator-echarts/issues/12229 if (getBoundingDiff(current, next) > 3000 || (polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000) ) { + polyline.stopAnimation(); polyline.setShape({ points: next }); if (polygon) { + polygon.stopAnimation(); polygon.setShape({ points: next, stackedOnPoints: stackedOnNext @@ -1345,7 +1346,6 @@ class LineView extends ChartView { } } - const updatedDataInfo: { el: SymbolExtended, ptIdx: number @@ -1364,7 +1364,6 @@ class LineView extends ChartView { } } } - if (polyline.animators && polyline.animators.length) { polyline.animators[0].during(function () { polygon && polygon.dirtyShape(); diff --git a/src/i18n/langPT-br.ts b/src/i18n/langPT-br.ts index bd8c988a64..8d6eb014f7 100644 --- a/src/i18n/langPT-br.ts +++ b/src/i18n/langPT-br.ts @@ -24,7 +24,8 @@ export default { time: { month: [ - 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' + 'Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', + 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro' ], monthAbbr: [ 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', diff --git a/test/line-extraneous.html b/test/line-animation-update.html similarity index 97% rename from test/line-extraneous.html rename to test/line-animation-update.html index e749696cfe..514559e836 100644 --- a/test/line-extraneous.html +++ b/test/line-animation-update.html @@ -42,6 +42,7 @@
+ + +