Skip to content

Commit

Permalink
make ammo chart height dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Apr 5, 2024
1 parent 3fe7d66 commit aba118f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Graph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const Graph = (props) => {
<VictoryChart
domainPadding={10}
padding={chartPadding}
height={185}
height={Math.max((props.legendData.length * 7) + 17, 180)}
theme={VictoryTheme.material}
minDomain={chartMinDomain}
maxDomain={chartMaxDomain}
Expand Down

0 comments on commit aba118f

Please sign in to comment.