VerticalLegend

constructor(items: Collection<LegendItem>, iconSizeDp: Float, iconPaddingDp: Float, spacingDp: Float = 0.0f, padding: MutableDimensions = emptyDimensions())

Parameters

items

a Collection of LegendItems to be displayed by this VerticalLegend.

iconSizeDp

defines the size of all LegendItem.icons.

iconPaddingDp

defines the padding between each LegendItem.icon and its corresponding LegendItem.label.

spacingDp

defines the vertical spacing between each LegendItem.

padding

defines the padding of the content.