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

In iOS-Chart how to hide the x and y axis and all the grid lines. #801

Closed
LekhaP opened this issue Mar 4, 2016 · 11 comments
Closed

In iOS-Chart how to hide the x and y axis and all the grid lines. #801

LekhaP opened this issue Mar 4, 2016 · 11 comments

Comments

@LekhaP
Copy link

LekhaP commented Mar 4, 2016

I did try setting
let xAxis:ChartXAxis = barChartView.xAxis xAxis.drawAxisLineEnabled = false xAxis.drawGridLinesEnabled = false
but this doesnot seems to work.

current

This is what i have right now.

I am trying to achieve
expected_end_result

Could somebody help.
Thank you in advance.

@yijian166
Copy link

Try set leftAxis and rightAxis

@LekhaP
Copy link
Author

LekhaP commented Mar 7, 2016

Thank you so much.
It worked :)

@anishparajuli555
Copy link

Is there a way i can enable gridlines at specific locations?

@Sethmr
Copy link

Sethmr commented Oct 12, 2016

Use limit lines like so:
let limitLine = ChartLimitLine(limit: 0, label: "")
limitLine.lineColor = UIColor.blackColor().colorWithAlphaComponent(0.3)
limitLine.lineWidth = 1

barChart.rightAxis.addLimitLine(limitLine)

@sUCHIT1507
Copy link

Thank you.

@Bilal10Akram
Copy link

@LekhaP can you please share how you resolve that issue? Thanks!!!

@jonfabris
Copy link

how do I remove just the vertical lines?

@sethi-ishmeet
Copy link

@LekhaP Can you share the solution?

@Ali-Aqdas
Copy link

@LekhaP Please share how to set bar labels

@Rakeshreddy593
Copy link

Try set leftAxis and rightAxis

Can you share the solution?

@Rakeshreddy593
Copy link

@here Also can someone share solution to hide all the values and show only graph

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