Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Point of Y Axis is not showing correctly. #289

Open
Seroja1010 opened this issue Feb 9, 2017 · 2 comments
Open

Point of Y Axis is not showing correctly. #289

Seroja1010 opened this issue Feb 9, 2017 · 2 comments
Labels

Comments

@Seroja1010
Copy link

Seroja1010 commented Feb 9, 2017

graph.autoScaleYAxis = false

func maxValue(forLineGraph graph: BEMSimpleLineGraphView) -> CGFloat {
        return 10000
}

func minValue(forLineGraph graph: BEMSimpleLineGraphView) -> CGFloat {
        return 0
}

The graph is not showing correctly. I am using xcode 8.0 and swift3.0

@Sam-Spencer
Copy link
Collaborator

Thank you for your contribution. In order to better address this issue, would you mind providing additional details? What exactly is happening with the graph? Can you add a screenshot?

@mackworth
Copy link

If you turn yaxis auto-scaling off, then you're providing the point values directly for the graph (e.g. 0 to 450 if your view is 450 points high). Therefore min/Max values have no meaning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants