不廢話,直接上代碼!!!!!!
//只需要在ChartDataSet的extension ChartDataSet: RangeReplaceableCollection 中增加 下方代碼
public func replaceSubrange<C>(_ subrange: Swift.Range<Int>, with newElements: C) where C :
Collection, ChartDataEntry == C.Element {
}
不廢話,直接上代碼!!!!!!
//只需要在ChartDataSet的extension ChartDataSet: RangeReplaceableCollection 中增加 下方代碼
public func replaceSubrange<C>(_ subrange: Swift.Range<Int>, with newElements: C) where C :
Collection, ChartDataEntry == C.Element {
}