gmoraleda
gmoraleda

Reputation: 1953

iOS Charts: Showing grid with axis disabled

I'm working with the charts library but I'm facing an issue I cannot solve. I deactivated my Y and X axis so that the graph goes till the screen margins:

mainChartView.rightAxis.enabled = false
mainChartView.leftAxis.enabled = false
mainChartView.leftAxis.axisMaximum = 1.2
mainChartView.leftAxis.axisMinimum = 0
mainChartView.xAxis.enabled = false

Nevertheless I want to draw a background grid. Is that possible?

This is my current graph:

enter image description here

And this is how I would like it to be: enter image description here

Thanks in advance!

Upvotes: 1

Views: 182

Answers (1)

gmoraleda
gmoraleda

Reputation: 1953

Got feedback from the library developers:

grid background is not supported yet. We are planning but it should be a long time. Either you change the source code and maybe a PR for us, or just wait.

Upvotes: 1

Related Questions