score:7
Accepted answer
You can get this behavior a little modyfing your function:
plotOptions: {
series: {
events: {
legendItemClick: function(event) {
var series = this.yAxis.series,
seriesLen = series.length,
visible = this.visible ? 1 : -1;
// +1 when visible series, because it will be changed after that callback
for(var i = 0; i < seriesLen; i++) {
if(!series[i].visible) {
visible++;
}
}
if(visible >= 2){
//do some action
}
}
}
}
},
Source: stackoverflow.com
Related Query
- Highcharts: Get visibility of series after legendItemClick
- Get Highcharts Series Data after Load
- Get max value and label in series after zoom in JS HighCharts
- Highcharts series visibility with csv data source
- Hiding _groups_ of series in Highcharts and jQuery: how to get acceptable performance?
- How to get multiple data series into Highcharts
- Get Value of visibility of series
- Highcharts - get visible series name dynamically
- unable to get series id in HighCharts chart
- Highcharts - Get crossing point of crossing series
- How to add series after click event in HighCharts
- Highcharts get series data zoom indices
- Highcharts: Maintain series visibility after chart reload
- How to get Series Name Based on Selection in Highcharts
- Highcharts pie get series color in tooltip headerFormat
- Highcharts no longer animates and readjusts/rescales chart upon addition and removal of series in legend after upgrading to jQuery 1.10
- HighCharts Drill Down multiple series , how to get drill down on second item on drill down?
- Can we get index from series data in highcharts
- highcharts get dashstyle from existing series
- highcharts group series click event to get all data in catagory
- Browser crashes after periodic update of Highcharts series data
- Highchart, get total of visible series data after setExtremes
- highcharts - zoom issue after changing series data
- Chartkick w/ Highcharts column_chart, specify visibility by series
- Highcharts js: get errors if there is a big point in a 3d series chart
- highcharts series remove function deletes all original series data (even after stored in new variable)
- Highcharts change a series fill opacity on legendItemClick
- Highcharts series hover state enables after adding series
- How to have multiple highcharts with different series data in vuejs without repeating code
- Get notice when a Highcharts chart is change after change the window size
More Query from same tag
- How to format data labels with Jquery Highcharttable column charts
- Angular 8 & Highcharts - how to show tooltip crosshairs
- Highchart Add text after value tooltip
- Ajax with HighCharts setData on Symfony 2
- Highcharts having problems with Ajax Request
- HighCharts SyntaxError: missing ] after element list
- How to customize highchart box plot box
- Bugs on windrose in highcharts
- How to customize which items appear in the built-in StockTools toolbar?
- Display and use time values on Highcharts
- Offline exporting a Highcharts chart using an external button
- Highstock Trigger javascript when range selector button clicked
- Highchart spider web chart
- How to display top 3 data label in piechart highchart
- Handling two ajax calls on single page to pull data into Highcharts on another page
- highcharts.js: cannot select some points in dense series
- Update data of existing Highstock graph using only JavaScript
- Using Highchart with javascript
- How to do mouse over x-Axis[Cateogories] in High charts when you mouse over the x-Axis [Category]
- Highchart legends,label are not responsive to mobile mode and it looks too smaller
- Highchart Heatmap Tooltip get x or key in HeaderFormat
- MongoDB aggregation by time interval PHP
- JavaScript line and area chart with similar interface as shown
- Trying to add a button to a iframe HighCharts document, chart variable not found
- Chart layout is distorted when escape from full screen mode
- Javascript convert 2D array to array of pairs
- How can i add time to xAixs of a ColumnRange Chart in HighChart?
- Yii2 Highcharts syntax in function
- HighCharts/Highstock: How to programmatically draw the mouse line
- Reference error using High Chart's API. MVC 3