add zoom graphs xy
This commit is contained in:
parent
58370449dd
commit
3accc31372
|
@ -1546,7 +1546,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||||
shadowSize: 0.1
|
shadowSize: 0.1
|
||||||
},
|
},
|
||||||
crosshair: { mode: 'xy' },
|
crosshair: { mode: 'xy' },
|
||||||
selection: { mode: 'x', color: '#777' },
|
selection: { mode: 'xy', color: '#777' },
|
||||||
export: {
|
export: {
|
||||||
export_data: true,
|
export_data: true,
|
||||||
labels_long: labels_long,
|
labels_long: labels_long,
|
||||||
|
@ -1640,7 +1640,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||||
color: ''
|
color: ''
|
||||||
} ],
|
} ],
|
||||||
yaxis: {ticks: [], autoscaleMargin: 0.1 },
|
yaxis: {ticks: [], autoscaleMargin: 0.1 },
|
||||||
selection: {mode: 'x', color: '#777' },
|
selection: {mode: 'xy', color: '#777' },
|
||||||
legend: {show: false},
|
legend: {show: false},
|
||||||
crosshair: {mode: 'x'}
|
crosshair: {mode: 'x'}
|
||||||
});
|
});
|
||||||
|
@ -1652,6 +1652,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||||
if (menu == 0) {
|
if (menu == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dataInSelection = ranges.xaxis.to - ranges.xaxis.from;
|
dataInSelection = ranges.xaxis.to - ranges.xaxis.from;
|
||||||
dataInPlot = plot.getData()[0].data.length;
|
dataInPlot = plot.getData()[0].data.length;
|
||||||
|
|
||||||
|
@ -1661,7 +1662,24 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||||
|
|
||||||
plot = $.plot($('#' + graph_id), data_base,
|
plot = $.plot($('#' + graph_id), data_base,
|
||||||
$.extend(true, {}, options, {
|
$.extend(true, {}, options, {
|
||||||
xaxis: { min: ranges.xaxis.from, max: ranges.xaxis.to},
|
yaxis: {
|
||||||
|
min: ranges.yaxis.from,
|
||||||
|
max: ranges.yaxis.to
|
||||||
|
},
|
||||||
|
yaxes: [{
|
||||||
|
tickFormatter: yFormatter,
|
||||||
|
color: '',
|
||||||
|
alignTicksWithAxis: 1,
|
||||||
|
labelWidth: 30,
|
||||||
|
position: 'left',
|
||||||
|
font: font,
|
||||||
|
reserveSpace: true,
|
||||||
|
min: ranges.yaxis.from
|
||||||
|
}],
|
||||||
|
xaxis: {
|
||||||
|
min: ranges.xaxis.from,
|
||||||
|
max: ranges.xaxis.to
|
||||||
|
},
|
||||||
xaxes: [ {
|
xaxes: [ {
|
||||||
tickFormatter: xFormatter,
|
tickFormatter: xFormatter,
|
||||||
minTickSize: new_steps,
|
minTickSize: new_steps,
|
||||||
|
@ -1669,6 +1687,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend,
|
||||||
} ],
|
} ],
|
||||||
legend: { show: false }
|
legend: { show: false }
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (thresholded) {
|
if (thresholded) {
|
||||||
var zoom_data_threshold = new Array ();
|
var zoom_data_threshold = new Array ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue