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,7 +94,11 @@ export class DataProcessor {
|
||||
const from = range.from;
|
||||
|
||||
if (last - from.valueOf() < -10000) {
|
||||
series.isOutsideRange = true;
|
||||
// If the data is in reverse order
|
||||
const first = datapoints[0][1];
|
||||
if (first - from.valueOf() < -10000) {
|
||||
series.isOutsideRange = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return series;
|
||||
|
Loading…
Reference in New Issue
Block a user