Graph: Consider reverse sorted data points on isOutsideRange check (#30289)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user