Default Slice
fun PieSliceScope.DefaultSlice( color: Color, modifier: Modifier = Modifier, border: BorderStroke? = null, hoverExpandFactor: Float = 1.0f, hoverElement: @Composable () -> Unit = {}, clickable: Boolean = false, onClick: () -> Unit = {})
Content copied to clipboard
A default pie chart slice implementation that can form full slices as well as slices with a "hole" for donut charts.
Receiver
Provides drawing and interaction parameters for the slice scope
Parameters
color
The Color of the Slice
modifier
The modifier to be applied to this item
border
The border stroke for the Slice
hover Expand Factor
Amount the slice expands when hovered. 1 is no expansion, values greater than 1 expand outward from the pie, and values less than 1 shrink. If expansion on hover is desired, a good starting value is 1.05.
hover Element
Content to show when the mouse/pointer hovers over the slice
clickable
If clicking should be enabled.
on Click
handler of clicks on the slice