SliceLabel

sealed class SliceLabel

A base class for slice labels.

Inheritors

Types

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

Draws the label inside the slice.

Link copied to clipboard
class Outside(var textComponent: TextComponent = TextComponent(), lineColor: Int = Color.BLACK, initialLineWidthDp: Float = 1.0f, var angledSegmentLengthDp: Float = Defaults.SLICE_ANGLED_SEGMENT_LENGTH, var horizontalSegmentLengthDp: Float = Defaults.SLICE_HORIZONTAL_SEGMENT_LENGTH, var maxWidthToBoundsRatio: Float = Defaults.SLICE_OUTSIDE_LABEL_MAX_WIDTH_TO_BOUNDS_RATIO) : PieChart.SliceLabel

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