Skip to content

Commit 416cf94

Browse files
authored
[prometheus] Fix yAxis Values (#580)
1 parent 20e1aaf commit 416cf94

File tree

1 file changed

+2
-2
lines changed
  • app/packages/prometheus/src/components

1 file changed

+2
-2
lines changed

app/packages/prometheus/src/components/Chart.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ const Chart: FunctionComponent<IChartProps> = ({ metrics, type, stacked, unit, m
132132
scale={{ x: 'time', y: 'linear' }}
133133
width={chartSize.width}
134134
domain={{ x: [new Date(times.timeStart * 1000), new Date(times.timeEnd * 1000)] }}
135-
maxDomain={max ? { y: max } : undefined}
136-
minDomain={min ? { y: min } : undefined}
135+
maxDomain={max !== undefined ? { y: max } : undefined}
136+
minDomain={min !== undefined ? { y: min } : undefined}
137137
>
138138
<VictoryAxis dependentAxis={false} tickFormat={chartTickFormatTime} />
139139
<VictoryAxis dependentAxis={true} label={unit} tickFormat={chartTickFormatValue} />

0 commit comments

Comments
 (0)