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

barchartview draw value in bottom of chart #3827

Closed
fukemy opened this issue Jan 31, 2019 · 1 comment
Closed

barchartview draw value in bottom of chart #3827

fukemy opened this issue Jan 31, 2019 · 1 comment

Comments

@fukemy
Copy link

fukemy commented Jan 31, 2019

Hi. I saw the value of data is above barchart, how can i put it below barchart?

@LiubovFedorchuk
Copy link

LiubovFedorchuk commented Feb 11, 2019

Hi @fukemy , try to do this:
chartView.drawValueAboveBarEnabled = false // if set to true, all values are drawn above their bars, instead of below their top

Or are you speaking about columns of BarChart? If yes, then take a look at this demo class PositiveNegativeBarChartViewController.

If you're speaking about values in labels, then try to do this part:

 let xAxis = chartView.xAxis
 xAxis.labelPosition = .bottom

@fukemy fukemy closed this as completed Feb 12, 2019
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