DefaultSlice

fun PieSliceScope.DefaultSlice(color: Color, modifier: Modifier = Modifier, border: BorderStroke? = null, hoverExpandFactor: Float = 1.0f, hoverElement: @Composable () -> Unit = {}, clickable: Boolean = false, antiAlias: Boolean = false, gap: Float = 0.0f, onClick: () -> Unit = {})

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

hoverExpandFactor

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.

hoverElement

Content to show when the mouse/pointer hovers over the slice

clickable

If clicking should be enabled.

antiAlias

Set to true if the slice should be drawn with anti-aliasing, false otherwise

gap

Specifies the gap between slices. It is the angular distance, in degrees, between the start/stop values the slice represents and where the slice is actually drawn.

onClick

handler of clicks on the slice