Commit 860ff8cf by Joan López de la Franca Beltran Committed by GitHub

Graph: Consider reverse sorted data points on isOutsideRange check (#30289)

parent 2ef1b865
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment