PieChart

open class PieChart : Bounded

Draws a pie chart.

Constructors

Link copied to clipboard
constructor(sliceProvider: PieChart.SliceProvider, spacingDp: Float = 0.0f, outerSize: PieSize.Outer = PieSize.Outer.Fill, innerSize: PieSize.Inner = PieSize.Inner.Zero, startAngle: Float = Defaults.PIE_CHART_START_ANGLE, valueFormatter: PieValueFormatter = PieValueFormatter.Value, legend: Legend<PieChartMeasuringContext, PieChartDrawingContext>? = null)

Draws a pie chart.

Types

Link copied to clipboard
open class Slice(var color: Int = Color.LTGRAY, var shaderProvider: ShaderProvider? = null, var strokeWidthDp: Float = 0.0f, var strokeColor: Int = Color.TRANSPARENT, var offsetFromCenterDp: Float = 0.0f, var label: PieChart.SliceLabel? = null)

Defines the appearance of a pie slice.

Link copied to clipboard
sealed class SliceLabel

A base class for slice labels.

Link copied to clipboard
fun interface SliceProvider

Provides Slices to PieCharts.

Properties

Link copied to clipboard
open override val bounds: RectF

The bounds of the abstract component.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(sliceProvider: PieChart.SliceProvider = this.sliceProvider, spacingDp: Float = this.spacingDp, 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

Creates a new PieChart based on this one.