-
-
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
Chart Clipping #1149
Comments
what did you do then? By default, it should not happen. We need more info. Take a look at ChartDemo, and seee if you are not following the correct workflow first |
@liuxuan30 I guess that I am following the same workflow as on the ChartDemo
Do you think that is related the high values? |
where do you call configure()? One common mistake is if you first set chart data, then configure chart property, you have to call notifyDataSetChanged, so normally configure chart first, and set chart data, because it will call notifyDataSetChanged in the data setter. However I am not sure if this is the case. You can try it out. On the other hand, if you use ChartsDemo, and just set axisMinValue, will it cut the highest value? I am thinking if you touches axisMaxValue |
@liuxuan30 I am calling configure() first. I still experience the same issue on my end. |
Also, have you set the axis dependency? I see you are having two axises, and different range. |
Yes, I am using it. |
@liuxuan30 Do you have an idea from where this can come from? |
not yet, just com back from WWDC, so lots of things left behind.. Normally, the y axis range will calculate a range that can contains your min and max data value, so it will not be clipped. Also, you have to specify which axis you are using by axisDependency. I didn't see you set any axis dependency in your code! How did you do it? Would you be able to debug the y axis range? It's in That's much easier to debug on your side. But if you are not sure, try ChartsDemo first. |
I think that it is related to this issue #407. Please use horizontal-bezier instead of the normal cubic bezier, it will better suit your needs if you don't understand beziers :-) |
The chart is clipping from top:
The text was updated successfully, but these errors were encountered: