图表参数配置
var chart = Highcharts.chart(divId,{
chart: {
animation: false,//去除动画效果
backgroundColor : "",
events: {
selection: function (event) {
//监控图表的放大、重置事件
if(event.resetSelection)
{
// 点击缩放重置
//还原图表初始状态
//this.zoom();
if (!isQuery)//查询:true(放大图表,点击"返回"按钮定时器不开启)
{
//点击reset按钮时,重新启动定时任务
}
}else
{
//图表缩放时触发事件
clearTimeout(fresh);
}
}
/*图表点击
* click: function () {
alert('123');
}*/
},
zoomType: 'x',//xy轴实现放大或缩小
resetZoomButton: {
position: {
// align: 'right', // by default
// verticalAlign: 'top', // by default
x: -20,
y: -50
},
theme:{
fill:"#20cdff",
style: {
color: 'white',
border:'none'
},