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

fix #190

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