提交 abd25e7f 编写于 作者: L lang

List data default convert to number

上级 c05b2779
......@@ -221,10 +221,12 @@ define(function (require) {
var value = (zrUtil.isObject(dataItem) && !zrUtil.isArray(dataItem))
? dataItem.value : dataItem;
if (zrUtil.isArray(value)) {
return value[dimIndex];
value = value[dimIndex];
}
var dimInfo = dimensionInfoMap[dimName];
var needsConvertToNumber = dimInfo && dimInfo.type !== 'ordinal';
// If value is a single number or something else not array.
return value;
return needsConvertToNumber ? +value : value;
};
for (var idx = 0; idx < data.length; idx++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册