PieChartDefaults

An object that provides default styles for a Pie Chart.

Functions

Link copied to clipboard
fun border(color: Color = MaterialTheme.colorScheme.surface, width: Dp = 1.dp): PieChartBorderStyle

Returns a PieChartBorderStyle with the provided parameters or their default values.

Link copied to clipboard
fun donut(holePercentage: Float = 0.0f): PieChartDonutStyle

Returns a PieChartDonutStyle with the provided parameters or their default values.

Link copied to clipboard
fun legend(visible: Boolean = true): LegendStyle

Returns a LegendStyle with the provided parameters or their default values.

Link copied to clipboard
fun slices(baseColor: Color = MaterialTheme.colorScheme.primary, alpha: Float = defaultChartAlpha()): PieChartSlicesStyle

Returns a PieChartSlicesStyle with the provided parameters or their default values.

Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), donut: PieChartDonutStyle = donut(), slices: PieChartSlicesStyle = slices(), border: PieChartBorderStyle = border(), legend: LegendStyle = legend()): PieChartStyle

Returns a PieChartStyle with the provided parameters or their default values.