DoughnutChart
public struct DoughnutChart<ChartData> : View where ChartData : DoughnutChartData
View for creating a doughnut chart.
Uses DoughnutChartData
data model.
Declaration
DoughnutChart(chartData: data)
View Modifiers
The order of the view modifiers is some what important as the modifiers are various types for stacks that wrap around the previous views.
.touchOverlay(chartData: data)
.infoBox(chartData: data)
.floatingInfoBox(chartData: data)
.headerBox(chartData: data)
.legends(chartData: data)
-
Initialises a bar chart view.
Declaration
Swift
public init(chartData: ChartData)
Parameters
chartData
Must be DoughnutChartData.
-
Declaration
Swift
public var body: some View { get }