WebJun 26, 2024 · Yes, of course. You can disable it for example by preventing default event on legendItemClick handler, just like that: Code: Select all. Highcharts.chart ('container', … WebJun 11, 2024 · legendItemClick: function () { var chart = Highcharts.chart; var series = chart.series; for (item in series) { if (series [item].visible) { series [item].hide (); } else { series [item].show (); } }; return false } On click of a legend item I try to grab the chart and all series, then cycle through each of them to toggle visibility.
Custom legends change highchart plot area and Y axis - Highcharts ...
WebJul 30, 2012 · Disable legend hover in Highcharts. 2. Highcharts donut legend toggle. 18. Highcharts: Hide and show legend. 20. Highcharts - Change legend index order. 0. How to ignore hidden series when clicking on a legend using highcharts? 1. Highcharts Stacked Area: legend hover event. 1. WebMay 15, 2012 · 2 Answers. You have to use the legendItemClick callback like the following code. plotOptions: { line: { events: { legendItemClick: function () { alert ('I am an alert'); //return false; // <== returning false will cancel the default action } } , showInLegend: true } } Here is working fiddle which shows alert when you click on legends like on ... geno x reaper wattpad
Disable Legends Pagination - Highcharts official support …
WebThis is the way to make legends of Highcharts graph non-clickable because whenever you click on a particular legend than corresponding slice become disappear from graph so make graph persist as per business requirement we may make legends unclickable. WebAug 21, 2024 · .highcharts-legend-item rect { visibility: hidden; } and use labelFormatter. Take a look at the example posted below. ... Series markers disable on lines and enable on legend in Highchart. 2. How to add Legend in highchart compare stock chart. 0. Highcharts donut customize legend. 0. WebMar 30, 2024 · Highcharts Stock ... "We are currently using custom legends for stock highchart. When we enable/disable ..." · "Thanks for contacting us with your question! This solution had a problem with series.yAxis.visible = true / false, because it forced the axis to hide. The better way to do it is to simply hide the series so that the axis will hide by itself ... ge now sabic