API REFERENCE
legend
Show the legend. Undefined lets each chart use its own default (marimekko/dot-plot default on; the cartesian charts default off).
Definition
| Item | Value |
|---|---|
| JavaScript property | legend |
| HTML attribute | legend |
| Type | boolean |
| Default | undefined |
undefined means this property was not explicitly set. The effective value may depend on the chart type and other settings.
Configuration example
// Register sy-line-chart and create the element before configuring it.
chart.legend = true;