Skip to content

SVGraph_MakeLegend()

CapnOdin edited this page Feb 3, 2017 · 9 revisions

Draws a legend with text followed by a colour.

SVGraph_MakeLegend([Data, Colour])

Parameters

Data

A list of the text in the legend.

Colour

A list of colours corresponding to the text, supports HTML Color Names or Color Values. e.g. "lightgrey" or "#FF00FF".

Note: If left blank, a colour will be generated for each entry in the Data parameter.

Remarks

To hide the legend call the function without parameters.

Example