This is an automated email from the ASF dual-hosted git repository. ovilia 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 b8914a9 fix(tooltip): bug when tooltip component is not defined b8914a9 is described below commit b8914a9c355dec92435af97da6c33b0f838ef369 Author: Ovilia <zwl.s...@gmail.com> AuthorDate: Tue Aug 7 11:41:41 2018 +0800 fix(tooltip): bug when tooltip component is not defined --- src/model/mixin/dataFormat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/mixin/dataFormat.js b/src/model/mixin/dataFormat.js index 29e68fd..a605200 100644 --- a/src/model/mixin/dataFormat.js +++ b/src/model/mixin/dataFormat.js @@ -38,7 +38,7 @@ export default { var itemOpt = data.getRawDataItem(dataIndex); var color = data.getItemVisual(dataIndex, 'color'); var tooltipModel = this.ecModel.getComponent('tooltip'); - var renderMode = tooltipModel.get('renderMode') || 'html'; + var renderMode = tooltipModel && tooltipModel.get('renderMode') || 'html'; return { componentType: this.mainType, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org