From 2e3e7a35963aba59e48e1ca8b2b16945a31f34e4 Mon Sep 17 00:00:00 2001 From: Phillip Date: Wed, 12 Jul 2017 01:29:47 +1000 Subject: [PATCH] Update API changes --- APIv4.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APIv4.md b/APIv4.md index 2c13fbd..fb9a89a 100644 --- a/APIv4.md +++ b/APIv4.md @@ -74,7 +74,7 @@ func value(forPlot plot: Plot, atIndex pointIndex: Int) -> Double Provides the y-axis value for a given x-axis index. ```swift -func label(forPlot plot: Plot, atIndex pointIndex: Int) -> String +func label(atIndex pointIndex: Int) -> String ``` Provides the label that will appear on the x-axis below the point. @@ -174,7 +174,7 @@ class ViewController: UIViewController, ScrollableGraphViewDataSource { } } - func label(forPlot plot: Plot, atIndex pointIndex: Int) -> String { + func label(atIndex pointIndex: Int) -> String { return xAxisLabels[pointIndex] }