[JavaScript] 纯文本查看 复制代码
option = {
legend:[
{
data: ['测试标题1', '测试标题2'],
left: 663,
top: 383,
itemWidth: 0,
itemHeight: 0,
textStyle: {
color: '#FFF',
fontSize: 14,
},
selected: {
'测试标题1': true,
'测试标题2': false
}
},
{
data: ['测试标题3', '测试标题4'],
left: 663,
top: 383,
itemWidth: 0,
itemHeight: 0,
textStyle: {
color: '#FFF',
fontSize: 14,
},
selected: {
'测试标题3': true,
'测试标题4': false
}
}, ],
title: {
text: 'Awesome Chart',
},
xAxis: {
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
},
yAxis: {},
series: [
{
type: 'bar',
name: '测试标题1',
data: [220, 182, 191, 234, 290, 330, 310],
},
{
type: 'bar',
name: '测试标题2',
data: [220, 182, 191, 234, 290, 330, 310],
},
],
};