Skip to content

Commit 7a65833

Browse files
committed
#RI-3643 - Graph line is displayed in the middle of graph when all keys with no expiry
1 parent 7a52f70 commit 7a65833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redisinsight/ui/src/components/charts/area-chart/AreaChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const AreaChart = (props: IProps) => {
115115
.domain(d3.extent(cleanedData, (d) => d.index) as [number, number])
116116
.range([0, width])
117117

118-
let maxY = d3.max(cleanedData, (d) => d.y) || 0
118+
let maxY = d3.max(cleanedData, (d) => d.y) || yCountTicks
119119

120120
if (dataType === AreaChartDataType.Bytes) {
121121
const curriedTyBytes = curryRight(toBytes)

0 commit comments

Comments
 (0)