PieChartStyle

class PieChartStyle(val modifier: Modifier, val chartViewStyle: ChartViewStyle, val donutPercentage: Float, var pieColors: List<Color>, val pieColor: Color, val pieAlpha: Float, val borderColor: Color, val borderWidth: Float, val legendVisible: Boolean) : Style

A class that defines the style for a Pie Chart.

Constructors

Link copied to clipboard
constructor(modifier: Modifier, chartViewStyle: ChartViewStyle, donutPercentage: Float, pieColors: List<Color>, pieColor: Color, pieAlpha: Float, borderColor: Color, borderWidth: Float, legendVisible: Boolean)

Properties

Link copied to clipboard

The color of the border around the pie chart.

Link copied to clipboard

The width of the border around the pie chart.

Link copied to clipboard

The style to be applied to the chart view.

Link copied to clipboard

The percentage of the chart that should be a donut hole. Must be between DONUT_MIN_PERCENTAGE and DONUT_MAX_PERCENTAGE.

Link copied to clipboard

A boolean indicating whether the legend is visible.

Link copied to clipboard

The modifier to be applied to the chart.

Link copied to clipboard

The alpha value applied to rendered pie slices.

Link copied to clipboard

The color to be used for the pie chart if pieColors is empty.

Link copied to clipboard

The colors to be used for the slices in the pie chart.

Functions

Link copied to clipboard
open override fun getProperties(): List<Pair<String, Any>>

Returns a list of the properties of the PieChartStyle.