StackedBarSegment

data class StackedBarSegment(val label: String, val value: Float, val color: PdfColor)

One coloured segment within a stacked bar.

Constructors

Link copied to clipboard
constructor(label: String, value: Float, color: PdfColor)

Properties

Link copied to clipboard

fill colour for this segment (and its legend swatch).

Link copied to clipboard

caption shown in the chart legend.

Link copied to clipboard

magnitude of this segment; negative values are treated as 0 because a negative stack segment has no meaningful geometry.