mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Corrected work for graphs created before this feature.
This commit is contained in:
parent
8c82e5701c
commit
7dd66450ad
@ -158,7 +158,7 @@ function graphDirective(timeSrv, popoverSrv, contextSrv) {
|
|||||||
|
|
||||||
function processRangeHook(plot) {
|
function processRangeHook(plot) {
|
||||||
var yaxis = plot.getYAxes();
|
var yaxis = plot.getYAxes();
|
||||||
if (yaxis.length > 1 && panel.yaxes[1].align !== null) {
|
if (yaxis.length > 1 && 'align' in panel.yaxes[1] && panel.yaxes[1].align !== null) {
|
||||||
alignYLevel(yaxis, parseFloat(panel.yaxes[1].align));
|
alignYLevel(yaxis, parseFloat(panel.yaxes[1].align));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
public/vendor/flot/jquery.flot.js
vendored
2
public/vendor/flot/jquery.flot.js
vendored
@ -1633,7 +1633,7 @@ Licensed under the MIT license.
|
|||||||
measureTickLabels(axis);
|
measureTickLabels(axis);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (snaped) {
|
if (snaped && hooks.processRange.length > 0) {
|
||||||
executeHooks(hooks.processRange, []);
|
executeHooks(hooks.processRange, []);
|
||||||
snaped = false;
|
snaped = false;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user