legendItemClick property

HighchartsCallback? legendItemClick
getter/setter pair

Fires when the legend item belonging to the series is clicked. One parameter, event, is passed to the function. The default action is to toggle the visibility of the series. This can be prevented by returning false or calling event.preventDefault().

Note: This option is deprecated in favor of legend.events.itemClick.

API Docs: https://api.highcharts.com/highcharts/series.treegraph.events.legendItemClick

Implementation

HighchartsCallback? legendItemClick;