option = {
legend: {
data: ['left', 'right']
},
xAxis : [
{
type : 'category',
data : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
}
],
yAxis : [
{
type : 'value'
},
{
type: 'value',
axisLabel: {
formatter: '{value} %'
},
min: 10,
max: 80
}
],
series : [
{
name: 'left',
type:'bar',
// barWidth: '60%',
data:[1000, -520, -2000, -3340, 3900, -330, -5220]
},
{
name: 'right',
type: 'line',
yAxisIndex: 1,
data: [10, 0, 30, 50]
}
]
}