-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CGContextAddLineToPoint no current point. #419
Comments
can we reproduce it with ChartsDemo? I don't see it in my project. |
i managed to get same error in ChartsDemo when i changed LineChartDataSet in LineChart1ViewController to follows : |
I see it with: set1.drawCubicEnabled = YES;
set1.drawFilledEnabled = YES; function: 234 CGContextAddLineToPoint(context, pt1.x, pt1.y)
235 CGContextAddLineToPoint(context, pt2.x, pt2.y) I see |
so, the graph actually draws correctly...its just console messages... |
Find out more: |
Yes, without X animation all good, thanks. |
@liuxuan30 thanks for narrowing the case :-) |
@danielgindi I would help to fix, but drawLinear and drawCubic is a little complicated to find out the proper solution :( still learning when having some chances |
When drawing LineChart i have a lot of warnings in console "CGContextAddLineToPoint: no current point." and "CGContextClosePath: no current point."
So i think, that LineChartRenderer missing CGPathMoveToPoint line at 234 or so, but can't figure out how to make it work... %)
The text was updated successfully, but these errors were encountered: