提交 000ac454 编写于 作者: L lang

Fix category get when data is a string

上级 53f2fba7
......@@ -31,7 +31,7 @@ define(function(require) {
return list[idx || 0];
}
}
}
};
CoordinateSystemManager.register = function (type, coordinateSystemCreator) {
coordinateSystemCreators[type] = coordinateSystemCreator;
......
......@@ -156,7 +156,7 @@ define(function(require) {
// [[3, 0.2], [1, 0.3], [2, 0.15]]
// or given scatter data,
// pick the category
if (data[0] && data[0].length > 1) {
if (zrUtil.isArray(data[0]) && data[0].length > 1) {
nameList = [];
for (var i = 0; i < dataLen; i++) {
nameList[i] = categories[data[i][0]];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册