Closed omairnabiel closed 3 weeks ago
@omairnabiel The chart should have a fixed height, not dynamic. Because changing the height of the chart will change its shape. You should try to adjust other content’s heights and margins instead of trying to adjust the chart’s height.
From your screenshot I can see there’s a lot of extra space below the curves in the Line charts. You can get rid of the extra space below by using the yAxisOffset
prop.
Description
I'm trying to fit the chart height into a
View
but it's exceeding the height of the View which causes it to render differently on different screens. How can I provide it a dynamic height so that it fits into the frame of View.Steps to reproduce
Snack or a link to a repository
No response
version of react-native-gifted-charts
15.2.0
React Native version
0.74.5
Platforms
Android, iOS, Web
Workflow
None