style
Returns a PieChartStyle with the provided parameters or their default values.
Parameters
The color to be used for the pie chart if pieColors is empty. Defaults to the primary color of the MaterialTheme.
The colors to be used for the slices in the pie chart. Defaults to an empty list.
The alpha value applied to rendered pie slices. Defaults to 0.4f in light theme and 0.6f in dark theme.
The color of the border around the pie chart. Defaults to the surface color of the MaterialTheme.
The inner padding of the pie chart. Defaults to 15.dp.
The percentage of the chart that should be a donut hole. Defaults to 0f.
The width of the border around the pie chart. Defaults to 3f.
A boolean indicating whether the legend is visible. Defaults to true.
The style to be applied to the chart view. Defaults to the default style of ChartViewDefaults.