option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
legend: {
bottom: 10,
right: 10,
data: ['legend定位bug'],
textStyle: {
rich: {} // 使用rich之后定位失效
}
},
series: [{
name: 'legend定位bug',
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line'
}]
};