TrendPanel: Add new trend panel (Alpha) (#65740)

This commit is contained in:
Ryan McKinley
2023-04-04 20:52:20 -07:00
committed by GitHub
parent 313b3dd2af
commit d974e5f25a
16 changed files with 354 additions and 18 deletions
@@ -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;