Skip to content

Commit 5adc482

Browse files
committed
heatmap y-axis fix
1 parent b719494 commit 5adc482

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/graphs/HeatMap.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ const HeatMapChart = ({
170170

171171
const axisLabel = d3
172172
.axisRight(yScale)
173-
.tickValues([...domain])
173+
.tickValues(
174+
colors === 'RdYlBu'
175+
? [...domain, (domain[1] + domain[0]) / 2]
176+
: [...domain]
177+
)
174178
.tickSizeOuter(0);
175179

176180
const legendBar = svg.append('g').datum(expandedDomain).call(svgBar);

0 commit comments

Comments
 (0)