Skip to content

Commit

Permalink
fix: enable wrapping for legends to ensure they all fit
Browse files Browse the repository at this point in the history
  • Loading branch information
EvHaus committed Jul 6, 2023
1 parent 6593a52 commit 957d718
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 0 deletions.
Binary file modified examples/basic.pdf
Binary file not shown.
Binary file modified examples/composed.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions src/ReactPDFChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const styles = StyleSheet.create({
'recharts-default-legend': {
justifyContent: 'center',
flexDirection: 'row',
flexWrap: 'wrap',
gap: 8,
},
'recharts-legend-item': {
Expand Down

0 comments on commit 957d718

Please sign in to comment.