From 9b9db80949564b7b3600dc9c4c2e7cd7f395e96c Mon Sep 17 00:00:00 2001 From: MariaZ Date: Fri, 30 Sep 2022 21:53:53 +0200 Subject: [PATCH] Center temp label in yAxis --- components/chart/tick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chart/tick.js b/components/chart/tick.js index ea392ff..45b9730 100644 --- a/components/chart/tick.js +++ b/components/chart/tick.js @@ -8,7 +8,7 @@ import { Sizes } from '../../styles' import { CHART_TICK_WIDTH } from '../../config' const Tick = ({ yPosition, height, isBold, shouldShowLabel, label }) => { - const top = yPosition - height / 2 + const top = yPosition - height / 2 - 4 const containerStyle = [styles.container, { flexBasis: height, height, top }] const textStyle = isBold ? styles.textBold : styles.textNormal