Skip to content
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

X-Axis at bottom of chart? #727

Closed
UberJason opened this issue Jan 31, 2016 · 1 comment
Closed

X-Axis at bottom of chart? #727

UberJason opened this issue Jan 31, 2016 · 1 comment

Comments

@UberJason
Copy link

Apologies if this is an obvious question. I noticed that all the graphs have the Y-axis on the left, and the X-axis at the top. But a lot of standard charts tend to put the X-axis on the bottom. Is there any API to set that? I noticed in the MPAndroidChart API, there's a setPosition function, but that doesn't seem to be included in ChartXAxis in iso-charts - instead there's a labelPosition property which seems only to relate to the position of the label relative to the X-axis.

Edit: Nevermind, I'm dumb! Setting the labelPosition property to .Bottom also moved the XAxis itself to the bottom.

@matheusaguiardev
Copy link

I do not know if I understood your question well, but on the charts-ios, It can be solved like this.
lineChartView.xAxis.labelPosition = XAxis.LabelPosition.bottom

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

No branches or pull requests

2 participants