PieChartData

data class PieChartData(val value: Float, val color: ChartColor, val labelColor: ChartColor = Color.White.asSolidChartColor(), val label: String)

Data class representing a single slice of a pie chart.

Constructors

Link copied to clipboard
constructor(value: Float, color: ChartColor, labelColor: ChartColor = Color.White.asSolidChartColor(), label: String)

Properties

Link copied to clipboard

The color of the pie chart slice.

Link copied to clipboard

The text label for the pie chart slice.

Link copied to clipboard

The color of the label text for the pie chart slice. Defaults to white.

Link copied to clipboard

The value of the pie chart slice.