From d74fa6c61800f6ddb05c51685a1f7a54b4f1e957 Mon Sep 17 00:00:00 2001 From: pissang Date: Fri, 10 Apr 2020 11:43:02 +0800 Subject: [PATCH] fix(line): tweak the magic number --- src/chart/line/LineView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chart/line/LineView.js b/src/chart/line/LineView.js index ae55ffbd2..cb272e68f 100644 --- a/src/chart/line/LineView.js +++ b/src/chart/line/LineView.js @@ -681,8 +681,8 @@ export default ChartView.extend({ // 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) > 5000 - || (polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 5000) + if (getBoundingDiff(current, next) > 3000 + || (polygon && getBoundingDiff(stackedOnCurrent, stackedOnNext) > 3000) ) { polyline.setShape({ points: next -- GitLab