Skip to content

Edge Bars (or BarGroups) are cut of #546

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

Open
alfredvaa opened this issue Apr 15, 2025 · 0 comments
Open

Edge Bars (or BarGroups) are cut of #546

alfredvaa opened this issue Apr 15, 2025 · 0 comments

Comments

@alfredvaa
Copy link

Describe Your Environment

What version of victory-native-xl are you using? (can be found by running npm list --depth 0 victory-native) 41.16.2

What version of React and React Native are you using? 0.74.2

What version of Reanimated and React Native Skia are you using? reanimated 3.10.1, skia 1.2.3

Are you using Expo or React Native CLI? expo

What platform are you on? (e.g., iOS, Android) both

Describe the Problem

When rendering Bar or BarGroup the edges are cut off. So for x = 0 and x = maxvalue only one half of the Bar (or one half of the BarGroup) is shown, the rest of the Bar or BarGroup is overflowing and therefore not visible. I understand that the x value of the bar is in the middle of the bar and therefore this issue appears. One would assume that the Chart takes the bar width into consideration when calculating x-positions but that seems to not be the case. It is not clear to me how this should be resolved, should I manually set the bar width and then calculate domainPadding out of that? What is the go to solution here?

Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens]

Additional Information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant