color: '#999999'
},
format:'{value}pm',//刻度值的单位
align: 'center'
},
lineColor: '#dfdfdf',//坐标轴的颜色
tickColor: '#dfdfdf',//坐标轴上的刻度线的颜色
tickLength: 5,//坐标轴上刻度线的长度
gridLineWidth:1,//网格线宽度。x轴默认为0,y轴默认为1px。
gridLineColor:'#f2f2f2',//网格线颜色。默认为:#C0C0C0。
// gridLineDashStyle: 'Dash',//网格线线条样式。和Css border-style类似,常用的有:Solid、Dot、Dash
tickInterval: 5,//刻度间隔
tickmarkPlacement: 'between',//刻度线对齐方式,有between和on可选,默认是between
style: {
color: '#999999',
fontSize:10
},
crosshair:{//鼠标放上后显示纵轴的数据
color:'#999',
width:1
}
},
yAxis: [{//图表的纵坐标,多个轴[{轴一},{轴二}] gridLineWidth: 1,
gridLineColor:'#f2f2f2',
tickPositions: [0, 25, 50, 75, 100],//y轴刻度值
tickLength:0,
title: {//纵坐标标题
text: ' ',
margin:0,
style: {
color: '#999999',
fontSize:10
}
},
labels:{//坐标轴上刻度的样式及单位
style: {
color: '#999999',
fontSize:10
},
format:'{value}%',//坐标轴上的单位
},
offset:-10,//距离坐标轴的距离
},{
gridLineWidth: 1,
gridLineColor:'#f2f2f2',
tickColor: '#fff',
tickInterval:25,
tickLength:0,
title: {
text: '',
margin:0,
style: {
color: '#999999',
fontSize:10
}
},
labels:{
style: {
color: '#999999',
fontSize:10
},
format:'{value}℃'
},
opposite:true,//设置opposite: true表示该轴位置反转,即为y轴时显示在右侧
offset:-10
}],
tooltip: {//数据提示框
headerFormat: '<small>{point.key}</small><br/>',//标题格式
pointFormat: '<span style="color:{series.color};">{series.name}</span>:{point.y}<br/>',
shared: true,
followPointer:true,//跟随鼠标
followPointerMove:true,//是否跟随手指移动
// footerFormat: 'muzi',//尾部格式化字符串
style:{
fontSize:10,
fontFamily:'微软雅黑',
fontWeight:'normal',
color:'#666'
}
},
//标示线总是垂直于它属于的轴。它可单独定义在x轴或y轴,也可以同时定义在x轴和y轴
plotOptions: {










