Legend

fun Legend(legendData: List<LegendData>, displayInfoIcon: Boolean = true, promptInfoDialog: () -> Unit = {})

Creates the legend that identifies the colors used for the graph.

Parameters

legendData

A list containing the LegendData to build the labels.

promptInfoDialog

Executes when the user presses the info icon.