Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Wrong Bezier curve when 2 data points #233

Closed
emartinson opened this issue Sep 14, 2015 · 2 comments
Closed

Wrong Bezier curve when 2 data points #233

emartinson opened this issue Sep 14, 2015 · 2 comments
Labels

Comments

@emartinson
Copy link

When Bezier is enabled and graph has only 2 data points - graph is curved bur line is stright.
2015-09-13 23-18-02 ios simulator - iphone 6 plus - iphone 6 plus ios 8 4 12h141

Workaround is like this:

self.simpleLineGraph.enableBezierCurve = numberOfDataPoints > 2;

But please consider to resolve this on your side.

@Boris-Em Boris-Em added the bug label Sep 14, 2015
@falaix
Copy link

falaix commented Sep 15, 2015

+1

Sam-Spencer pushed a commit that referenced this issue Jan 24, 2016
Fixes #233 by checking for data sources with less than two data points
and drawing an appropriate line and line fill.
@Sam-Spencer
Copy link
Collaborator

Most recent commits should fix this issue from within the project, no changes needed on your end. Enjoy!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@Sam-Spencer @Boris-Em @falaix @emartinson and others