Skip to content

feat: support linear static graph paths - #134

Open
huytdps13400 wants to merge 1 commit into
margelo:mainfrom
huytdps13400:fix/static-linear-curve
Open

feat: support linear static graph paths#134
huytdps13400 wants to merge 1 commit into
margelo:mainfrom
huytdps13400:fix/static-linear-curve

Conversation

@huytdps13400

Copy link
Copy Markdown
Contributor

Summary

  • add a curve prop to static line graphs with bezier and linear options
  • preserve Bézier interpolation as the default
  • document and exercise the linear mode in the example app

Closes #132

Verification

  • yarn test --runInBand — 2 suites, 6 tests passed
  • yarn typecheck
  • yarn lint — 0 errors; one pre-existing no-shadow warning in src/AnimatedLineGraph.tsx
  • yarn prepare
  • CI=1 yarn workspace react-native-graph-example expo export --platform web --output-dir /tmp/graph-132-web-dist-final

Scope

The new option is intentionally limited to animated={false}. Animated graphs keep their existing interpolation behavior.

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

Successfully merging this pull request may close these issues.

Support linear paths for static line graphs

1 participant