diff --git a/Charts/Classes/Data/ChartDataSet.swift b/Charts/Classes/Data/ChartDataSet.swift index 4d33d50818..ae82517de3 100644 --- a/Charts/Classes/Data/ChartDataSet.swift +++ b/Charts/Classes/Data/ChartDataSet.swift @@ -279,8 +279,10 @@ public class ChartDataSet: NSObject /// Returns the number of entries this DataSet holds. public var valueCount: Int { return _yVals.count; } - - /// Adds an entry to the end of the yVals array + + /// Adds an Entry to the DataSet dynamically. + /// Entries are added to the end of the list. + /// This will also recalculate the current minimum and maximum values of the DataSet and the value-sum. /// :param: e the entry to add public func addEntry(e: ChartDataEntry) { @@ -313,7 +315,9 @@ public class ChartDataSet: NSObject _yVals.append(e) } - /// Adds an entry, and inserting it at the appropriate index in the yVals array, according to it's x-index. + /// Adds an Entry to the DataSet dynamically. + /// Entries are added to their appropriate index respective to it's x-index. + /// This will also recalculate the current minimum and maximum values of the DataSet and the value-sum. /// :param: e the entry to add public func addEntryOrdered(e: ChartDataEntry) {