style

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

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

Parameters

chartContainerStyle

The style to be applied to the chart view. Defaults to the default style of ChartContainerDefaults.

donut

The donut configuration. Defaults to a chart without a donut hole.

slices

The slice configuration. Defaults to theme-derived slice colors and alpha.

border

The border configuration. Defaults to a 1.dp border using the surface color.

legend

The legend configuration. Defaults to a visible legend.