pod chart后报错

错误提示:Type 'ChartDataSet' does not conform to protocol 'RangeReplaceableCollection'

解决方案

// MARK: RangeReplaceableCollection

extension ChartDataSet: RangeReplaceableCollection中粘贴方法

publicfuncreplaceSubrange(_subrange: Swift.Range,withnewElements: C)whereC :

    Collection,ChartDataEntry== C.Element{

       }

你可能感兴趣的:(pod chart后报错)