mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
Time series: fix soft scale limits when all values are 0 (#35596)
This commit is contained in:
parent
b3fcad947b
commit
d3c1a2bf8e
@ -39,8 +39,8 @@ export class UPlotScaleBuilder extends PlotConfigBuilder<ScaleProps, Scale> {
|
||||
: {};
|
||||
|
||||
// uPlot's default ranging config for both min & max is {pad: 0.1, hard: null, soft: 0, mode: 3}
|
||||
let softMinMode: Range.SoftMode = softMin == null ? 3 : softMin === 0 ? 1 : 2;
|
||||
let softMaxMode: Range.SoftMode = softMax == null ? 3 : softMax === 0 ? 1 : 2;
|
||||
let softMinMode: Range.SoftMode = softMin == null ? 3 : 1;
|
||||
let softMaxMode: Range.SoftMode = softMax == null ? 3 : 1;
|
||||
|
||||
const rangeConfig: Range.Config = {
|
||||
min: {
|
||||
|
Loading…
Reference in New Issue
Block a user