Pie chart
A pie or donut chart with optional sector annotations and center content.
A pie or donut chart with optional sector annotations and center content.
Public API
FPieChartFPieChartPresentationFPieChartSectorAnnotationsFPieChartDonutCenter
Example
FPieChart(
values: values,
presentation: .donut(
center: .total(label: "Total", format: .integer)
),
annotations: .percentage(format: .percentage),
legend: legend
)
Source
This reference follows Sources/FreakUI/Components/Charts/FPieChart.swift. Component-specific configuration is documented under the public initializer, modifier, and supporting types in that source file.