第三方库报错: Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'
解决方案:
public func replaceSubrange<C>(_ subrange: Swift.Range<Index>, with newElements: C) where C : Collection, Element == C.Element {
entries.replaceSubrange(subrange, with: newElements)
notifyDataSetChanged()
}
复制上文 如图所示