|
@@ -454,7 +454,7 @@ open class ChartData: NSObject
|
|
/// Also recalculates all minimum and maximum values.
|
|
/// Also recalculates all minimum and maximum values.
|
|
///
|
|
///
|
|
/// - returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.
|
|
/// - returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.
|
|
- open func removeDataSet(_ dataSet: IChartDataSet!) -> Bool
|
|
|
|
|
|
+ @discardableResult open func removeDataSet(_ dataSet: IChartDataSet!) -> Bool
|
|
{
|
|
{
|
|
if dataSet === nil
|
|
if dataSet === nil
|
|
{
|
|
{
|
|
@@ -476,7 +476,7 @@ open class ChartData: NSObject
|
|
/// Also recalculates all minimum and maximum values.
|
|
/// Also recalculates all minimum and maximum values.
|
|
///
|
|
///
|
|
/// - returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.
|
|
/// - returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.
|
|
- open func removeDataSetByIndex(_ index: Int) -> Bool
|
|
|
|
|
|
+ @discardableResult open func removeDataSetByIndex(_ index: Int) -> Bool
|
|
{
|
|
{
|
|
if index >= _dataSets.count || index < 0
|
|
if index >= _dataSets.count || index < 0
|
|
{
|
|
{
|
|
@@ -508,7 +508,7 @@ open class ChartData: NSObject
|
|
}
|
|
}
|
|
|
|
|
|
/// Removes the given Entry object from the DataSet at the specified index.
|
|
/// Removes the given Entry object from the DataSet at the specified index.
|
|
- open func removeEntry(_ entry: ChartDataEntry, dataSetIndex: Int) -> Bool
|
|
|
|
|
|
+ @discardableResult open func removeEntry(_ entry: ChartDataEntry, dataSetIndex: Int) -> Bool
|
|
{
|
|
{
|
|
// entry outofbounds
|
|
// entry outofbounds
|
|
if dataSetIndex >= _dataSets.count
|
|
if dataSetIndex >= _dataSets.count
|
|
@@ -530,7 +530,7 @@ open class ChartData: NSObject
|
|
/// Removes the Entry object closest to the given xIndex from the ChartDataSet at the
|
|
/// Removes the Entry object closest to the given xIndex from the ChartDataSet at the
|
|
/// specified index.
|
|
/// specified index.
|
|
/// - returns: `true` if an entry was removed, `false` ifno Entry was found that meets the specified requirements.
|
|
/// - returns: `true` if an entry was removed, `false` ifno Entry was found that meets the specified requirements.
|
|
- open func removeEntry(xValue: Double, dataSetIndex: Int) -> Bool
|
|
|
|
|
|
+ @discardableResult open func removeEntry(xValue: Double, dataSetIndex: Int) -> Bool
|
|
{
|
|
{
|
|
if dataSetIndex >= _dataSets.count
|
|
if dataSetIndex >= _dataSets.count
|
|
{
|
|
{
|