willdale / SwiftUICharts

A charts / plotting library for SwiftUI. Works on macOS, iOS, watchOS, and tvOS and has accessibility features built in.
MIT License
860 stars 108 forks source link

PieChart InfoBox Error #125

Closed diliedevs closed 3 years ago

diliedevs commented 3 years ago

Adding the .infoBox(chartData: data) view modifier to a PieChart gives the following error: Instance method 'infoBox(chartData:height:)' requires that 'PieChartData' conform to 'CTLineBarChartDataProtocol'.

How do I get the infoBox to show when I touch a piece of the pie?

diliedevs commented 3 years ago

Never mind, I found the solution in the demo project. Awesome package by the way.

willdale commented 3 years ago

Hey @diliedevs, glad you sorted it.