提交 d61b0352 编写于 作者: L lang

Legend option without data

上级 e5cffa84
......@@ -16,7 +16,7 @@ define(function(require) {
option.selected = option.selected || {};
var legendData = zrUtil.map(option.data, function (dataItem) {
var legendData = zrUtil.map(option.data || [], function (dataItem) {
if (typeof dataItem === 'string') {
dataItem = {
name: dataItem
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册