chart: {
renderTo: 'container',
zoomType: 'y',
events: {
selection: function(event) {
if (event.xAxis) {
$report.html('Last selection:<br/>min: '+ Highcharts.dateFormat('%Y-%m-%d', event.xAxis[0].min) +
', max: '+ Highcharts.dateFormat('%Y-%m-%d', event.xAxis[0].max));
} else {
$report.html ('Selection reset');
}
}
}
},
renderTo: 'container',
zoomType: 'y',
events: {
selection: function(event) {
if (event.xAxis) {
$report.html('Last selection:<br/>min: '+ Highcharts.dateFormat('%Y-%m-%d', event.xAxis[0].min) +
', max: '+ Highcharts.dateFormat('%Y-%m-%d', event.xAxis[0].max));
} else {
$report.html ('Selection reset');
}
}
}
},