Unavailable instance method 'replaceSubrange(_:with:)' was used to satisfy a requirement of protocol 'RangeReplaceableCollection'
Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'
解決方案:
// MARK: RangeReplaceableCollection
extension ChartDataSet: RangeReplaceableCollection
方法里補(bǔ)充
public func replaceSubrange<C>(_ subrange: Swift.Range<Int>, with newElements: C) where C :
Collection, ChartDataEntry == C.Element {
}