mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Graph: Consider reverse sorted data points on isOutsideRange check (#30289)
This commit is contained in:
parent
2ef1b8653d
commit
860ff8cf7d
@ -94,9 +94,13 @@ export class DataProcessor {
|
|||||||
const from = range.from;
|
const from = range.from;
|
||||||
|
|
||||||
if (last - from.valueOf() < -10000) {
|
if (last - from.valueOf() < -10000) {
|
||||||
|
// If the data is in reverse order
|
||||||
|
const first = datapoints[0][1];
|
||||||
|
if (first - from.valueOf() < -10000) {
|
||||||
series.isOutsideRange = true;
|
series.isOutsideRange = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return series;
|
return series;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user