You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2019/10/08 07:30:16 UTC

[incubator-echarts] 01/03: fix(gauge): update data with dataset #10945

This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch fix-10945
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit 9d8cff58d6ccdffc0db999b1b77fee9fc62c126d
Author: Ovilia <zw...@gmail.com>
AuthorDate: Tue Oct 8 15:26:42 2019 +0800

    fix(gauge): update data with dataset #10945
---
 src/chart/gauge/GaugeSeries.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chart/gauge/GaugeSeries.js b/src/chart/gauge/GaugeSeries.js
index d6b22af..f8c3e72 100644
--- a/src/chart/gauge/GaugeSeries.js
+++ b/src/chart/gauge/GaugeSeries.js
@@ -26,8 +26,8 @@ var GaugeSeries = SeriesModel.extend({
     type: 'series.gauge',
 
     getInitialData: function (option, ecModel) {
-        var dataOpt = option.data || [];
-        if (!zrUtil.isArray(dataOpt)) {
+        var dataOpt = option.data;
+        if (dataOpt && !zrUtil.isArray(dataOpt)) {
             dataOpt = [dataOpt];
         }
         option.data = dataOpt;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org