-
-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot adjust padding for inner container #732
Comments
I'm also having same issue. |
To add top padding to the graph containers you will need to make changes to the library code as there are no props exposed that allow you to move the SVG components around in the main SVG container. For the LineGraph you need to make changes in the Change line 379 to:
You will also need to update the
You can then use this value in your
|
Hi, thanks for your suggestion! Looking for a PR on this? |
I'm using a custom render on the dots to print the abbreviated value above the dot instead of using a y axis legend. However, the top-most value gets cut off by the upper boundary of the chart's container. I tried adding padding top to both the chart component itself, as well as the chart props. Adding paddingTop to the chart component props does add padding but it's only to the outer container. Adding any styles to the style prop in the chartConfig prop seems to have no effect.
Any help would be greatl appreciated! I created an Expo Snack for your convenience!
https://snack.expo.dev/@devlylabs/chart-example-with-dot-labels
Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: