margelo / margelo/react-native-graph
Support linear paths for static line graphs
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.6k
- Forks
- 136
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 12
Description
StaticLineGraph currently always uses Bézier interpolation. Measured signals often need straight sample-to-sample segments so the curve does not imply unmeasured values.
Proposal: add an optional curve: "bezier" | "linear" prop, defaulting to bezier for compatibility.
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.
Research direction
Start at the StaticLineGraph component and trace where its Bézier interpolation is configured. Add the optional curve choice while preserving the existing Bézier default, then verify that linear mode uses straight sample-to-sample segments and that existing behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- frontend, mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100