diff --git a/src/AnimatedLineGraph.tsx b/src/AnimatedLineGraph.tsx index 2b3a882..7681587 100644 --- a/src/AnimatedLineGraph.tsx +++ b/src/AnimatedLineGraph.tsx @@ -442,10 +442,15 @@ export function AnimatedLineGraph({ pulseTrigger ) + const axisLabelContainerStyle = { + paddingTop: TopAxisLabel != null ? 20 : 0, + paddingBottom: BottomAxisLabel != null ? 20 : 0, + } + return ( - + {/* Top Label (max price) */} {TopAxisLabel != null && ( @@ -548,9 +553,6 @@ const styles = StyleSheet.create({ container: { flex: 1, }, - axisLabelContainer: { - paddingVertical: 20, - }, axisRow: { height: 17, },