setLegend

fun setLegend(newLegend: Legend)

Sets or replaces the legend data and rebuilds the content view.