VerticalLegend
open class VerticalLegend<M : MeasuringContext, D : DrawingContext>(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSizeDp: Float = Defaults.LEGEND_ICON_SIZE, iconLabelSpacingDp: Float = Defaults.LEGEND_ICON_LABEL_SPACING, rowSpacingDp: Float = Defaults.LEGEND_ROW_SPACING, padding: Dimensions = Dimensions.Empty) : Legend<M, D>
VerticalLegend displays legend items in a vertical list.
Parameters
items
adds the LegendItems.
iconSizeDp
the LegendItem.icon size (in dp).
iconLabelSpacingDp
the spacing between LegendItem.icon and LegendItem.label (in dp).
rowSpacingDp
the row spacing (in dp).
padding
the content padding.
Constructors
Link copied to clipboard
constructor(items: AdditionScope<LegendItem>.(ExtraStore) -> Unit, iconSizeDp: Float = Defaults.LEGEND_ICON_SIZE, iconLabelSpacingDp: Float = Defaults.LEGEND_ICON_LABEL_SPACING, rowSpacingDp: Float = Defaults.LEGEND_ROW_SPACING, padding: Dimensions = Dimensions.Empty)