ConcaveConvexSlice

fun PieSliceScope.ConcaveConvexSlice(color: Color, modifier: Modifier = Modifier, hoverElement: @Composable () -> Unit = {}, clickable: Boolean = false, antiAlias: Boolean = false, gap: Float = 0.0f, onClick: () -> Unit = {})

A semicircle shaped pie chart slice implementation that can form full slices as well as slices with a "hole" for donut charts. The endings of each slice consist of a concave and a convex shape.

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

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. Cannot be negative.

onClick

handler of clicks on the slice