-
Notifications
You must be signed in to change notification settings - Fork 154
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
LineChart - Strip and Points not showing beyond x index 0 for DataSet #911
Comments
Vertical Strip is not visible after some index point on the data, used using data prop. Circular pointer is visible but the strip is hidden. Do you have any Idea how this could be fixed? ` this is the pointerConfig. |
@Abhinandan-Kushwaha , poniterConfig is not showing the pointerStrip after certain X data points. I used data prop of the LineGraph using one of the examples shown. Graph COmponent:
Parent Component:
|
Description
When trying to show a strip and datapoint when pressing a LineChart that uses the
dataSet
property, the points and strip disappears when pressing anything other than the beginning of the graph (x = 0).I've found what I believe is the cause of the issue, which lies here:
react-native-gifted-charts/src/LineChart/index.tsx
Lines 1362 to 1373 in 20a98cf
Where the active X point is set. The calculation for finding the x value uses the
cumulativeSpacing1
list, which is empty when the component usesdataSet
instead ofdata
,data2
etc.I suppose this should be using
cumulativeSpacingForSet
instead?Steps to reproduce
dataSet
pointerConfig
to enable pointers and strip to appear.Snack or a link to a repository
No response
version of react-native-gifted-charts
1.4.47
React Native version
0.75
Platforms
Android, iOS
Workflow
React Native
The text was updated successfully, but these errors were encountered: