legend

fun legend(visible: Boolean = StyleDefaults.legendVisible): LegendStyle(source)

Returns a LegendStyle with the provided visibility.

The chart renders the legend only when the data has more than one segment, at least one segment has a name, and visible is true.

Parameters

visible

Whether the legend is visible. Defaults to true.