-
-
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
Bar on BarChart and CombinedChart doesn't start one Zero line #1729
Comments
Use |
The axisMinimum is setted to 0.0. The Zero line is drawed at the top of AxisX and not on the AxisX. Here an example where we see the AxisX and the Zero line. I will expect that there lines were the same line. Here a second example where we see the graduation line for 0 with the Zero Line Sorry for my English. It's hard to explain the problem |
@jndefosse I am a bit confused.. what's graduation line? Did you mean turn on |
OK just found the reason: context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: pos.y - 1.0))
context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: pos.y - 1.0))
context.drawPath(using: CGPathDrawingMode.stroke) @jndefosse you can delete @danielgindi do you remember why? |
Yes, it was for correcting an Android rendering anomaly. On iOS it's not supposed to happen... |
Thanks |
Hello,
I use MPAndroidChart and Charts on my project. With Charts, when a use BarChart or CombinedChart with BarData, i show the ZeroLine with default parameter. When the chart is drawed, bars don't start at zero but before it. See the screenshot.
In MPAndroidChart, bars drawed correctly
Can you tell me how to fix it?
The text was updated successfully, but these errors were encountered: