Boris-Em / BEMSimpleLineGraph

Elegant Line Graphs for iOS. (Charting library)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Point of Y Axis is not showing correctly.

Seroja1010 opened this issue · comments

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

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?

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.