Slice

data class Slice(val label: String, val value: Float, val color: Color, val sliceDescription: (Int) -> String = { slicePercentage -> "Slice name : $label \nPercentage : $slicePercentage %" })

Slice is data class to mention data of each arc in a 360 degree chart.

Parameters

label

: Name of the arc.

value

: Value of the arc.

color

: Color of the arc.

sliceDescription

: Description of the arc for accessibility service.

Constructors

Link copied to clipboard
constructor(label: String, value: Float, color: Color, sliceDescription: (Int) -> String = { slicePercentage -> "Slice name : $label \nPercentage : $slicePercentage %" })

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard