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

xAxis.axisMaxValue not working #1312

Closed
gjarpere opened this issue Aug 11, 2016 · 3 comments
Closed

xAxis.axisMaxValue not working #1312

gjarpere opened this issue Aug 11, 2016 · 3 comments

Comments

@gjarpere
Copy link

gjarpere commented Aug 11, 2016

It is likely that BarLineChartViewBase calculating _axisMaximum for x axis every time in despite of xAxis._customAxisMax setted. Here is a code:

    // calculate / set x-axis range
    _xAxis._axisMaximum = Double((_data?.xVals.count ?? 0) - 1)
@danielgindi
Copy link
Collaborator

@PhilJay

@automactic
Copy link

automactic commented Aug 11, 2016

I just met the same issue while making some line chats. I don't want the first and last entry to be plotted on the axis, so I tried to set axisMinValue and axisMaxValue, but axisMaxValue is not working

@gjarpere a walk around is to use setVisibleXRangeMinimum(CGFloat), but the last vertical grid line is not drawn.

@danielgindi
Copy link
Collaborator

danielgindi commented Aug 11, 2016

A work around is to move to Charts 3.0 in beta ;)

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

3 participants