We're using highcharts (highstock specifically) to graph numerous types of data. We would like to take advantage of the XY zoom type, however, it would be awesome if we could zoom in to only what was selected with the selection box.
However, when one zooms in using XY, if you select no data in another axis, the axis simply shows nothing. It would be ideal if the highlighted/selected area redrew over the entire graph.
I've tried looking at the chart object in the browser console window, and values like "series[x].visible" are the same for all the axes after the zoom. Is it even possible to accomplish what I'm asking for?
EDIT: I should note that we need to have the graphs not be layered on top of each other simply because of the amount of data we'll be showing, thats why the two charts show independently.
Fiddle: http://jsfiddle.net/cwc4em4w/
$('#container').highcharts({
chart: {
type: 'line',
rightMargin: 80,
zoomType: 'xy'
},
yAxis: [{
id: 'hi',
height: '40%',
top: '10%',
title: { text: 'label 1', y: 0, x: -30, align: 'middle' },
labels: { align: 'left', x: -25 }
}, {
id: 'ho',
height: '40%',
top: '60%',
title: { text: 'label 2', y: 0, x: 0, align: 'middle' },
labels: { align: 'left', x: 0 }
}],
xAxis: [{
type: 'datetime',
tickInterval: 24 * 3600 * 1000,
yAxis: 'hi'
},{
type: 'datetime',
tickInterval: 24 * 3600 * 1000,
yAxis: 'ho'
}],
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4],
pointStart: Date.UTC(2010, 0, 1),
pointInterval: 24 * 3600 * 1000,
yAxis: 'hi'
},{
data: [129.9, 171.5, 1106.4, 1129.2, 1144.0, 1176.0, 1135.6, 1148.5, 1216.4],
pointStart: Date.UTC(2010, 0, 1),
pointInterval: 24 * 3600 * 1000,
yAxis: 'ho'
}]
});