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