Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

时间线地图,不同年legend不完整时的刷新问题 #970

Closed
zhaohng opened this issue Nov 28, 2014 · 1 comment
Closed

时间线地图,不同年legend不完整时的刷新问题 #970

zhaohng opened this issue Nov 28, 2014 · 1 comment
Labels

Comments

@zhaohng
Copy link

zhaohng commented Nov 28, 2014

数据如下,legend有2类,但2001仅有A类数据,2002仅有B类数据,时间点移动到2002年时,地图变为空白
option = {
"timeline" : {
"y2" : -10,
"autoPlay" : true,
"playInterval" : 3000,
"data" : ["2001", "2002"]
},
"options" : [{
"title" : {
"text" : "2001",
"x" : "center"
},
"tooltip" : {
"trigger" : "item"
},
"legend" : {
"orient" : "vertical",
"x" : "80",
"data" : ["A", "B"]
},
"dataRange" : {
"min" : 0,
"calculable" : true,
"x" : "left",
"y" : "bottom",
"text" : ["高", "低"],
"color" : ["orangered", "yellow", "lightskyblue"],
"max" : 28
},
"toolbox" : {
"show" : false
},
"series" : [{
"type" : "map",
"mapType" : "china",
"roam" : true,
"itemStyle" : {
"normal" : {
"label" : {
"show" : true
}
},
"emphasis" : {
"label" : {
"show" : true
}
}
},
"name" : "B",
"data" : [{
"name" : "北京",
"value" : 1
}]
}]
}, {
"title" : {
"text" : "2002"
},
"series" : [{
"name" : "A",
"data" : [{
"name" : "江苏",
"value" : 1
}]
}]
}
]}

@kener
Copy link
Contributor

kener commented Nov 28, 2014

应该是个bug,尝试补全每一个option的数据,然后timeline.notMerge设置为true试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants