From 679dc492f26d034a8efb62f97c3ea31f81b77e7b Mon Sep 17 00:00:00 2001 From: quietcoder <1642965215@qq.com> Date: Thu, 19 Apr 2018 15:11:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(scatter):=20=E4=BF=AE=E5=A4=8D=E5=9B=A0=20l?= =?UTF-8?q?ine=20=E8=BF=94=E5=9B=9E=20false=20=E5=BC=95=E8=B5=B7=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #246 --- src/packages/scatter/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/packages/scatter/main.js b/src/packages/scatter/main.js index c38058f..ae5c607 100644 --- a/src/packages/scatter/main.js +++ b/src/packages/scatter/main.js @@ -172,6 +172,7 @@ const scatter = (columns, rows, settings, extra) => { dimension: dimension ? [dimension] : undefined }) const options = line(columns, rows, lineSettings, extra) + if (!options || !options.series) return {} options.series.forEach(item => { Object.assign(item, { type: 'scatter',