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

Query: Enable gridelines at specific location points. #1410

Closed
anishparajuli555 opened this issue Sep 7, 2016 · 6 comments
Closed

Query: Enable gridelines at specific location points. #1410

anishparajuli555 opened this issue Sep 7, 2016 · 6 comments

Comments

@anishparajuli555
Copy link

I have disabled gridlines as

lineChart.rightAxis.drawGridLinesEnabled = false
lineChart.xAxis.drawGridLinesEnabled = false

And the result is as below:
screen shot 2016-09-07 at 5 47 01 pm

However, i need to show vertical gridlines at specific locations..How can i acheive this?

@liuxuan30
Copy link
Member

for specific location 'grid line', check out 'ChartLimitLine'

@anishparajuli555
Copy link
Author

anishparajuli555 commented Sep 8, 2016

@danielgindi @liuxuan30 I am able to draw horizontal grid lines but not vertical.

let limitSet1 = ChartLimitLine(limit: 232, label: "")
lineChart.rightAxis.addLimitLine(limitSet1)

@liuxuan30
Copy link
Member

vertical? xAxis.addLimitLine

@anishparajuli555
Copy link
Author

@liuxuan30 nope..That doesnot works...No Line appears

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 13, 2016

It should work. Line does not appear could have many reasons - color, covered by other things, etc. limit lines can be added on both x and y axis. Unless you say 'ChartsDemo' does not work neither.

@anishparajuli555
Copy link
Author

@liuxuan30 Thanks..It works...i had problem setting the Limit value.

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