yAxis : {
title : {
text : ‘数据‘
},
plotLines : [ {
value : 0,
width : 1,
color : ‘#808080‘
} ],
min: 30, //最小
tickInterval: 10, //步长
max:150,//最大
// 不同Y轴范围设置不同颜色 begin
plotBands: [{
from: 30,
to: 60,
color: ‘rgba(168, 255, 213, 0.3)‘,
label: {
text: ‘偏低‘,
style: {
color: ‘#606060‘
}
}
}, {
from: 60,
to: 100,
color: ‘rgba(68, 70, 213, 0.3)‘,
label: {
text: ‘正常‘,
style: {
color: ‘#606060‘
}
}
}, {
from: 100,
to: 150,
color: ‘rgba(255, 97, 0, 0.3)‘,
label: {
text: ‘偏高‘,
style: {
color: ‘#606060‘
}
}
}]
// 不同Y轴范围设置不同颜色 end
},
原文:http://www.cnblogs.com/yimiyan/p/4095431.html