mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 12:11:09 -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) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
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);
|
||||
});
|
||||
|
||||
if (snaped) {
|
||||
if (snaped && hooks.processRange.length > 0) {
|
||||
executeHooks(hooks.processRange, []);
|
||||
snaped = false;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user