You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/07/21 03:22:55 UTC
[incubator-echarts] branch master updated: fix(dataSample):
negative size
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/master by this push:
new 75b6506 fix(dataSample): negative size
new c1e3a78 Merge pull request #12997 from SnailSword/master
75b6506 is described below
commit 75b650613d18f8a52b5647abcbed5f0cee0c57cd
Author: saniac <sn...@gmail.com>
AuthorDate: Mon Jul 20 23:24:04 2020 +0800
fix(dataSample): negative size
---
src/processor/dataSample.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/processor/dataSample.js b/src/processor/dataSample.js
index 1fef0df..5097718 100644
--- a/src/processor/dataSample.js
+++ b/src/processor/dataSample.js
@@ -83,7 +83,7 @@ export default function (seriesType) {
var valueAxis = coordSys.getOtherAxis(baseAxis);
var extent = baseAxis.getExtent();
// Coordinste system has been resized
- var size = extent[1] - extent[0];
+ var size = Math.abs(extent[1] - extent[0]);
var rate = Math.round(data.count() / size);
if (rate > 1) {
var sampler;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org