提交 9b97ca12 编写于 作者: K kener

fix #190

上级 af12408b
...@@ -668,11 +668,13 @@ define(function (require) { ...@@ -668,11 +668,13 @@ define(function (require) {
// 根据类目轴数据索引换算类目轴名称 // 根据类目轴数据索引换算类目轴名称
function getNameByIndex(dataIndex) { function getNameByIndex(dataIndex) {
if (typeof option.data[dataIndex].value != 'undefined') { var data = option.data[dataIndex];
return option.data[dataIndex].value; if (typeof data != 'undefined' && typeof data.value != 'undefined')
{
return data.value;
} }
else { else {
return option.data[dataIndex]; return data;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册