We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
chartView.rightAxis.axisMinLabels = 10 chartView.rightAxis.axisMaxLabels = 15
axisMinLabels to be 10 axisMaxLabels to be 15
axisMinLabels
axisMaxLabels
axisMinLabels == 15 axisMaxLabels == 15
axisMinLabels == 15
axisMaxLabels == 15
Charts version/Branch/Commit Number: 3.2.0 Xcode version: 10.0 (10A255) Swift version: 4.2 Platform(s) running Charts: iOS 11
looks like axisMaxLabels' didSet has some erroneous code inside:
https://github.com/danielgindi/Charts/blob/5087a04bbefc9f15995113954ce217bbfb445577/Source/Charts/Components/AxisBase.swift#L222-L224
Shouldn't it be axisMaxLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue in Line 223?
axisMaxLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue
The text was updated successfully, but these errors were encountered:
Seems a bug. Would you mind a fix and file a PR?
Sorry, something went wrong.
69e433a
No branches or pull requests
What did you do?
What did you expect to happen?
axisMinLabels
to be 10axisMaxLabels
to be 15What happened instead?
axisMinLabels == 15
axisMaxLabels == 15
Charts Environment
Charts version/Branch/Commit Number: 3.2.0
Xcode version: 10.0 (10A255)
Swift version: 4.2
Platform(s) running Charts: iOS 11
Solution
looks like axisMaxLabels' didSet has some erroneous code inside:
https://github.com/danielgindi/Charts/blob/5087a04bbefc9f15995113954ce217bbfb445577/Source/Charts/Components/AxisBase.swift#L222-L224
Shouldn't it be
axisMaxLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue
in Line 223?The text was updated successfully, but these errors were encountered: