Legend Events

legend_item_click

Dispatches when a legend item is clicked.

AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

visible

Boolean

The status of the legend item before the click.

true | false | 1 | 0

xdata

Object

The collection of extra data associated with the plot via data-XXX attributes.

{...}

legend_marker_click

Dispatches when a legend marker is clicked.

A ZingChart Embedded Demohttps://app.zingsoft.com/demos/embed/1Y92Y0BQ
AttributeTypeInfo

graphid

String

The ID of the graph object.

"mygraph" | 0 | 1 | ...

id

String

The ID of the zingchart object.

"mychart" | ...

plotid

String

The id of the plot (if any).

"mylineplot" | ...

plotindex

Numeric

The index of the plot.

0 | 1 | ...

visible

Boolean

The status of the legend marker before the click.

true | false | 1 | 0

xdata

Object

The collection of extra data associated with the plot via data-XXX attributes.

{...}