BiConvexSlice

fun PieSliceScope.BiConvexSlice(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. Each slice features a convex shape on both its starting and ending sides.

It is intended to be used in donut charts where the holeSize is significantly greater than 0; otherwise, the resulting slice shape may appear visually unbalanced.

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