Skip to content

Commit 9500174

Browse files
Merge pull request #1267 from RedisInsight/fe/feature/RI-3643_Area_chart_display_0_bottom
#RI-3643 - Graph line is displayed in the middle of graph
2 parents 7a52f70 + 7a65833 commit 9500174

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)