Graph doesn't show or gestureConfig errors
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react-native, typescript
- Domain
- data-visualization, mobile
Research direction
Reproduce the issue with the reported dataPoints and the LineGraph snippet, testing both animated={false} and animated={true}. Compare the setup with the graph examples in the docs; done means the graph renders and enabling animation no longer produces the gestureConfig.toGestureArray error.
Written by the indexing model from the issue text.
Description
const dataPoints = [{"date": 2023-01-21T17:45:00.000Z, "value": 122549.01960784315}, {"date": 2023-01-22T05:45:00.000Z, "value": 120481.92771084337}, {"date": 2023-01-22T17:45:00.000Z, "value": 120481.92771084337}, {"date": 2023-01-23T05:45:00.000Z, "value": 119760.47904191617}, {"date": 2023-01-23T17:45:00.000Z, "value": 120481.92771084337}, {"date": 2023-01-24T05:45:00.000Z, "value": 121951.21951219514}, {"date": 2023-01-24T17:45:00.000Z, "value": 120481.92771084337}]
<LineGraph
points={dataPoints}
animated={false}
color="#fff"
/>
The graph does not show when using like this.
If I turn animated to true I then get the following error TypeError: undefined is not an object (evaluating 'gestureConfig.toGestureArray').
Can anyone help? I just want to implement a graph similar to those listed in the docs.
- Dominant language
- TypeScript
- Stars
- 2.6k
- Forks
- 136
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from margelo/react-native-graph
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
margelo/react-native-graph#132 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
margelo/react-native-graph#120 · 2 comments · 3 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
margelo/react-native-graph#112 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
margelo/react-native-graph#103 · 7 comments · 3 reactions ·
-
Tooltip Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
margelo/react-native-graph#102 ·
All issues in margelo/react-native-graph
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·