SliceLabel

sealed class SliceLabel

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

Inheritors

Types

Link copied to clipboard
class Inside(val textComponent: TextComponent = TextComponent()) : PieChart.SliceLabel

Draws the label inside the slice.

Link copied to clipboard
class Outside(val textComponent: TextComponent = TextComponent(), val lineColor: Color = Color.Black, val lineWidth: Dp = Defaults.PIE_OUTSIDE_LABEL_LINE_WIDTH.dp, val angledSegmentLength: Dp = Defaults.PIE_OUTSIDE_LABEL_ANGLED_SEGMENT_LENGTH.dp, val horizontalSegmentLength: Dp = Defaults.PIE_OUTSIDE_LABEL_HORIZONTAL_SEGMENT_LENGTH.dp, val maxWidthToBoundsRatio: Float = Defaults.PIE_OUTSIDE_LABEL_MAX_WIDTH_TO_BOUNDS_RATIO) : PieChart.SliceLabel

Draws the label outside the slice and connects it with a line.