Charts
Charts copied to clipboard
iOS 15 Crash has been fixed.
Issue Link :link:
If you want all the pies to be highlighted in the piechart, you will get an error in ios 15. Cannot convert NSArray to Swift Array.
var highlights: [Highlight] = []
for i in 0 ..< entries.count {
let highlight = Highlight(x: Double(i), y: Const.highlightYValue, dataSetIndex: Const.highlightDataSetIndex)
highlights.append(highlight)
}
pieChartView.highlightValues(highlights)
Used compactMap to cast NSArray to Swift Array.
Goals :soccer:
None
Implementation Details :construction:
None
Testing Details :mag:
None
Needs a reproducible project. You can always map before passing the array to our function.