From eca1fb15d0b0dab5699f195ac764cd9288db6f1b Mon Sep 17 00:00:00 2001 From: kener Date: Mon, 30 Sep 2013 15:35:27 +0800 Subject: [PATCH] =?UTF-8?q?tooltip=20=E9=9B=B7=E8=BE=BE=E5=9B=BE=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AEbug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/tooltip.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/component/tooltip.js b/src/component/tooltip.js index 7d815461e..db5e209cf 100644 --- a/src/component/tooltip.js +++ b/src/component/tooltip.js @@ -675,14 +675,17 @@ define(function (require) { : {name:'', value: {dataIndex:'-'}}; params.push([ - typeof seriesArray[i].name != 'undefin' - ? seriesArray[i].name : '', + typeof seriesArray[i].name != 'undefined' + ? seriesArray[i].name : '', data.name, data.value[dataIndex], indicatorName ]); } } + if (params.length <= 0) { + return; + } if (typeof formatter == 'function') { _curTicket = 'axis:' + dataIndex; _tDom.innerHTML = formatter( -- GitLab