TrendPanel: Add new trend panel (Alpha) (#65740)
This commit is contained in:
@@ -156,6 +156,11 @@ export class UPlotScaleBuilder extends PlotConfigBuilder<ScaleProps, Scale> {
|
||||
|
||||
let minMax: uPlot.Range.MinMax = [dataMin, dataMax];
|
||||
|
||||
// don't pad numeric x scales
|
||||
if (scaleKey === 'x' && !isTime) {
|
||||
return minMax;
|
||||
}
|
||||
|
||||
// happens when all series on a scale are `show: false`, re-returning nulls will auto-disable axis
|
||||
if (!hasFixedRange && dataMin == null && dataMax == null) {
|
||||
return minMax;
|
||||
|
||||
Reference in New Issue
Block a user