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

iOS Chart Y-Axis High Limit #317

Closed
amycheong19 opened this issue Aug 25, 2015 · 4 comments
Closed

iOS Chart Y-Axis High Limit #317

amycheong19 opened this issue Aug 25, 2015 · 4 comments

Comments

@amycheong19
Copy link

I'm having a set of volume for example: 1- 10 but the Y-Axis bar top is 1000 which I have no idea why it expand that much. Is there something need to be set? Why there is a lot of space on top>=?
screen shot 2015-08-25 at 9 50 02 pm

Here is the chart settings.

 bottomCombinedChartView.descriptionText = ""
    bottomCombinedChartView.noDataTextDescription = ""
    bottomCombinedChartView.noDataText = "Loading chart..."

    bottomCombinedChartView.highlightEnabled = true
    bottomCombinedChartView.dragEnabled = true

    bottomCombinedChartView.pinchZoomEnabled = true
    bottomCombinedChartView.doubleTapToZoomEnabled = true
    bottomCombinedChartView.drawGridBackgroundEnabled = false

    bottomCombinedChartView.rightAxis.enabled = true
    bottomCombinedChartView.leftAxis.enabled = false
    bottomCombinedChartView.drawBarShadowEnabled = false
    bottomCombinedChartView.legend.enabled = false        
    bottomCombinedChartView.setViewPortOffsets(left: 0, top: 0, right: 0, bottom: 0)

var yAxis: ChartYAxis = bottomCombinedChartView.rightAxis
    yAxis.startAtZeroEnabled = false
    yAxis.labelPosition = .InsideChart
    yAxis.drawAxisLineEnabled = false
@liuxuan30
Copy link
Member

If you did nothing, it will calculate the y axis range depending on your data values' range. Double check if you have some values that is abnormally large but not shows up.

On the other hand, you could use yAxis.customAxisMax to set the max value.

@noais
Copy link
Contributor

noais commented Sep 18, 2015

Maybe this alteration can help you: #382

@noais
Copy link
Contributor

noais commented Sep 18, 2015

#388

@danielgindi
Copy link
Collaborator

Please check to see if the problem still persists with the latest version.

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

4 participants