diff --git a/components/chart/tick.js b/components/chart/tick.js index 92ca2b7..ea392ff 100644 --- a/components/chart/tick.js +++ b/components/chart/tick.js @@ -12,9 +12,11 @@ const Tick = ({ yPosition, height, isBold, shouldShowLabel, label }) => { const containerStyle = [styles.container, { flexBasis: height, height, top }] const textStyle = isBold ? styles.textBold : styles.textNormal + if (!shouldShowLabel) return null + return ( - {shouldShowLabel && label} + {label} ) } @@ -36,6 +38,7 @@ const styles = StyleSheet.create({ position: 'absolute', right: 0, width: CHART_TICK_WIDTH, + minHeight: Sizes.base + 2, }, textBold: { fontSize: Sizes.base,