score:0
I recommend to disable default legend and use your own, like in the example:
$legend = $('#customLegend');
$.each(chart.series[0].data, function (j, data) {
$legend.append('<div class="item"><div class="symbol" style="background-color:'+data.color+'"></div><div class="serieName" id="">' + data.name + '</div></div>');
});
$('#customLegend .item').click(function(){
var inx = $(this).index(),
point = chart.series[0].data[inx];
if(point.visible)
point.setVisible(false);
else
point.setVisible(true);
});
Then you will have a chance to add condtions etc, which achieve your goal.
Source: stackoverflow.com
Related Query
- Highcharts Pie chart: how to hide the legend for all but the three highest values
- Highcharts - How to combine unique legend for multi-series pie chart which perform same action for both series? (like onclick: show/hide)
- How do I hide the code for the chart data in highcharts?
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- How to hide labels in the highcharts in the pie
- How can i hide all the Series in highcharts at a time
- How to Check and Uncheck all the Legend elements in HighCharts Linechart?
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- Highcharts - Display legend for Pie chart in two columns
- How to center highcharts pie chart and legend on a page?
- How Can I Hide a Pie Chart's Slice in HighCharts Without Removing It From the Legend?
- How to show Legends for all the series data in stacked column chart Highcharts?
- Highcharts - how to do a responsive pie chart when the texts of the labels are long
- How to display the total of the series values for a donut chart in Highcharts?
- Hide the zero values in a Scatter/Column chart in highcharts
- How do I calculate the total Data values for both and display in Legend
- How do I completely hide the chart title in a HighCharts chart?
- Highcharts display label for pie chart using html table as data source
- canvg and highcharts how to include chart legend and keep the chart size?
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- How do i color the highcharts legend square symbol when my chart has multiple color entries
- highcharts hide the chart except the legend
- How to make a HighCharts drilldown column/bar chart that does not hide the non-drilldown categories
- How can I put xAxis in highcharts starting in the horizontal line when all values are in 0?
- highcharts donut pie - How to calculate pie size percentages after resize the chart
- How to show circular progress pie chart using the highcharts
- Highcharts hide legend item from Pie chart
- Highcharts - How would I use HTML input boxes to input the data for a Pie Chart?
- Highcharts Pie Chart Add Value to the Legend
More Query from same tag
- shift y-axis from dumbell chart within the line
- Arrays in highcharts
- Highcharts yAxis title click
- Export Highcharts DataTable to PDF - Angular
- How to set multiselect by default in highmaps?
- Highstock navigator not adjustable
- NVDA arrows navigation only working with alt key in highcharts
- Display threshold line even if threshold value is higher than max y-axis value in HighStock
- Spacing between the y-axis values in highchart
- use highmaps in .vue file
- Highmaps: Panning programmatically
- Highcharts series drawn over contextButton
- highcharts value doesn't fit container
- How to change the theme of a Highstock graph with a button?
- How to add current price line on hover?
- How to add math equations in highcharts?
- High chart date
- ColdFusion JSON return in a specific format
- Split one JSON return into several objects
- Highcharts dynamic-update example - adding 1 new value every second - without historic data
- highcharts 3d scatter chart: displaying categories
- HighCharts: pie slices need background images
- making series in Highcharts clickable
- Highcharts error #13 and AngularJs
- use highchart and highstock on the same page
- Audiogram with Highcharts
- highcharts gauge use with negative values
- streaming multiple series to highcharts
- The correct method to populate a Highcharts box plot using JSON
- Linking issue between python script, flask framework, and html