margelo / margelo/react-native-graph

Support linear paths for static line graphs

Open
#132 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.