highcharts 附有上下限

来源:互联网 发布:服务器端口打开失败 编辑:程序博客网 时间:2024/06/08 16:52
var chart = new Highcharts.Chart({ 
        chart: {
            renderTo: 'container'
        },
        xAxis: {
            
        },
        yAxis: {
labels:{
formatter:function(){
return this.value+"%";
}
},
plotBands:[{
color: 'red',
                width: 1,
                value: 90,
zIndex:999,
                dashStyle:"dash", 
},{
color: 'orange',
                width: 1,
                value: 60,
zIndex:999,
                dashStyle:"dash", 
}],
            tickWidth: 1,
lineWidth: 1,
minorTickWidth:1,
minorGridLineWidth:0,
minorTickInterval:"auto",
minorTickLineWidth:1,
minorTickLength:5,
            title: {
                text: null
            },
        },
        series: [{
            data: [36,45,96,12,16,94,85,63,68,15,36,34,56,86,94,63,48,31,58,96,31,36,34,35,31,28,63]        
        }]
})
原创粉丝点击