错误提示:Type ‘ChartDataSet’ does not conform to protocol ‘RangeReplaceableCollection’
解决方案如下:
extension ChartDataSet: RangeReplaceableCollection方法添加代码
public func replaceSubrange<C>(_ subrange: Swift.Range<Int>, with newElements: C) where C :
Collection, ChartDataEntry == C.Element {
}
网友评论