Legend

Legend Events

legend_item_click

Dispatches when a legend item is clicked.

AttributeTypeInfo
graphidString

The ID of the graph object.

"mygraph" | 0 | 1 | ...

idString

The ID of the zingchart object.

"mychart" | ...

plotidString

The id of the plot (if any).

"mylineplot" | ...

plotindexNumeric

The index of the plot.

0 | 1 | ...

visibleBoolean

The status of the legend item before the click.

true | false | 1 | 0

xdataObject

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

{...}

legend_marker_click

Dispatches when a legend marker is clicked.

https://app.zingsoft.com/demos/embed/1Y92Y0BQ
https://app.zingsoft.com/demos/embed/1Y92Y0BQ
AttributeTypeInfo
graphidString

The ID of the graph object.

"mygraph" | 0 | 1 | ...

idString

The ID of the zingchart object.

"mychart" | ...

plotidString

The id of the plot (if any).

"mylineplot" | ...

plotindexNumeric

The index of the plot.

0 | 1 | ...

visibleBoolean

The status of the legend marker before the click.

true | false | 1 | 0

xdataObject

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

{...}