PieChart

A Compose Multiplatform pie chart.

Types

Link copied to clipboard
open class Slice(val fill: Fill = Fill.Black, val strokeFill: Fill = Fill.Transparent, val strokeThickness: Dp = 0.dp, val offsetFromCenter: Dp = 0.dp, val label: PieChart.SliceLabel? = null)

Defines the appearance of a pie slice.

Link copied to clipboard
sealed class SliceLabel

Defines how a pie-slice label is measured and drawn.

Link copied to clipboard
fun interface SliceProvider

Provides Slices to PieCharts.

Properties

Link copied to clipboard
open override var bounds: Rect

The bounds of the abstract component.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val spacing: Dp
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(sliceProvider: PieChart.SliceProvider = this.sliceProvider, spacing: Dp = this.spacing, outerSize: PieSize.Outer = this.outerSize, innerSize: PieSize.Inner = this.innerSize, startAngle: Float = this.startAngle, valueFormatter: PieValueFormatter = this.valueFormatter, legend: Legend<PieChartMeasuringContext, PieChartDrawingContext>? = this.legend): PieChart