slices

fun slices(baseColor: Color = MaterialTheme.colorScheme.primary, alpha: Float = defaultChartAlpha()): PieChartSlicesStyle(source)

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

Parameters

baseColor

The base color used to generate shades for slices that do not specify their own color via io.github.hdcharts.charts.model.PieSlice.color. Defaults to the primary color of the MaterialTheme.

alpha

The alpha value applied to rendered pie slices. Defaults to 0.4f in light theme and 0.6f in dark theme.