PieSliceScope

Scope for Pie slices.

Properties

Link copied to clipboard
abstract val angle: Float

The angular width of the slice

Link copied to clipboard
abstract val innerRadius: Float

The inside radius of the slice, as a fraction of its constraint's width, must be between 0 and 1 inclusive

Link copied to clipboard
abstract val outerRadius: Float

The outside radius of the slice, as a fraction of its constraint's width, must be between 0 and 1 inclusive

Link copied to clipboard
abstract val startAngle: Float

The angle where the slice starts

Functions

Link copied to clipboard
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.

Link copied to clipboard
abstract fun Modifier.hoverableElement(element: @Composable () -> Unit): Modifier