option = {
title: {
text: 'Awesome Chart'
},
xAxis: {
type:'category',
data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
},
yAxis: [{
type: 'value',
name: '温度',
axisLabel: {
formatter: '{value}℃'
}
}, {
type: 'value',
name: '百分比',
min: 0,
max: 100,
axisLabel: {
formatter: '{value}%'
}
}],
series: [{
name: '送风温度(℃)',
type: 'line',
yAxisIndex: 1,
data: [19, 1, 2, 1, 3, 4, 5]
}, {
name: '风机速度反馈(%)',
type: 'line',
yAxisIndex: 1,
data: [10, 10, 20, 10, 30, 40, 50]
}]
};