解决办法:
代码展示:
function randomData() {
return Math.round(Math.random()*1000);
}
option = {
title: {
text: ‘iphone销量’,
subtext: ‘纯属虚构’,
left: ‘center’
},
tooltip: {
trigger: ‘item’
},
legend: {
orient: ‘vertical’,
l
解决办法:
代码展示:
function randomData() {
return Math.round(Math.random()*1000);
}
option = {
title: {
text: ‘iphone销量’,
subtext: ‘纯属虚构’,
left: ‘center’
},
tooltip: {
trigger: ‘item’
},
legend: {
orient: ‘vertical’,
l