legend

fun legend(visible: Boolean = true): LegendStyle(source)

Returns a LegendStyle with the provided visibility.

The chart renders the legend only when the data has more than one series and visible is true. Pass visible = false to suppress the legend for multi-series data.

Parameters

visible

Whether the legend is visible. Defaults to true.