highcharts设置Y轴范围及根据Y轴范围设置不同颜色

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
},

  

posted on 2014-11-13 17:12  依米艳  阅读(2290)  评论(0编辑  收藏  举报

导航