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
A base class for slice labels.
Link copied to clipboard
Properties
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.