verticalLegend
fun verticalLegend(items: Collection<LegendItem>, iconSize: Dp, iconPadding: Dp, spacing: Dp = 0.dp, padding: MutableDimensions = emptyDimensions()): VerticalLegend
Creates a VerticalLegend.
Parameters
items
a Collection of LegendItems to be displayed by this VerticalLegend.
iconSize
defines the size of all LegendItem.icons.
iconPadding
defines the padding between each LegendItem.icon and its corresponding LegendItem.label.
spacing
defines the vertical spacing between each LegendItem.
padding
defines the padding of the content.