Slice
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.
Constructors
Link copied to clipboard
constructor(color: Int = Color.LTGRAY, shaderProvider: ShaderProvider? = null, strokeWidthDp: Float = 0.0f, strokeColor: Int = Color.TRANSPARENT, offsetFromCenterDp: Float = 0.0f, label: PieChart.SliceLabel? = null)
Properties
Functions
Link copied to clipboard
open fun draw(context: DrawingContext, contentBounds: RectF, oval: RectF, startAngle: Float, sweepAngle: Float, holeRadius: Float, label: CharSequence?, spacingPath: Path, sliceOpacity: Float, labelOpacity: Float)
Draws the slice.