score:1
Accepted answer
For some reason (bug probably) legendItemClick
doesn't fire for the pie series (that would be appropriate place to handle this custom behavior).
As a workaround I overwrote the core function Highcharts.Legend.prototype.setItemEvents
and implemented the desired functionality there: https://jsfiddle.net/kkulig/236gpt4s/
// custom code - handle categories
item.series.chart.series.forEach(function(s) {
s.points.forEach(function(p) {
if(p.name === item.name) {
p.setVisible();
}
});
});
Source: stackoverflow.com
Related Query
- Multiple Pie Charts Of Variable Data With Single Legend Item Click
- Hightcharts - multiple data in one single pie charts
- Enable or disable data labels shown in pie charts in Highcharts on click of a button
- Highcharts: update series on multiple charts with same data
- Highcharts connecting scatter chart and pie chart with single legend
- HighChart Pie Chart click on legend item to trigger drilldown
- Customizing the series data in pie charts with a dynamic json series (HighCharts)
- Highcharts legend how to show multiple charts data category?
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- one chart, multiple series multiple data with single data
- Enable Horizontal Scrollbar in Highcharts with Multiple Pie Charts
- How to have multiple highcharts with different series data in vuejs without repeating code
- Multiple charts with same data not loading in same page: Highcharts
- Multiple pie charts in 1 graph with split tooltip Highcharts.js
- HighCharts BoxPlot With Multiple Series Having Single Data
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Click on Highcharts pie rendering border although legend item click is disabled
- Highcharts pie chart - offset a single slice on legend click
- Highchart Color Issue for series with single data with multiple colors
- Highcharts multiple dynamic panes with single legend
- How to align multiple charts with different data
- How to modify highcharts legend item click event?
- Manage multiple highchart charts in a single webpage
- How to disable legend click to stop pie slice from disappearing in Highcharts?
- Plot data values inside pie charts slice
- Symbol-outline with pie chart -or- custom legend symbols
- Highcharts with JSON data and multiple series
- change legend color high charts based on data
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Rails: Pie Charts legend in Chartkicks
More Query from same tag
- highchats in r shiny: the x values on click are not the real values of my date axis
- Parse HTTP Response that Contains Serialized Object with Functions
- HighChart: How to get exact point / timestamp from plotBands click
- highchart set fill color
- How to change line color when loading static csv data into Highcharts Highstock graph?
- Highcharts ajax not working
- HighCharts Data and Legend Ordering
- Highcharts CSS Styling Axis Font
- What is this Highstocks UI element, and can it be controlled independently of the tooltip?
- Highcharts 3d scatter click does not work
- How can I get a data label in my Highcharts Pie Chart that is a font-awesome icon?
- Using HighCharts styledMode in Angular 8 application
- How to hide bar but keep datalabels HighCharts
- Use ajax variable in HighCharts
- Highchart not rendering inside a ajax function angularjs
- How to parse the data from CSV FILE to arrays so it could be used for a pre-formatted Highchart
- How to position Highcharts tooltip on top of bar or at 0 line of Y-axis for negative value
- Pass data from controller to view into script - LARAVEL
- Background on the bar not getting removed from Highcharts
- HIghcharts Map from GeoJSON Data Showing Up Too Small
- Exporting 2 button option issue in highchart
- HIghcharts export server hosting ph-batik
- Highcharts Using CSV instead of JSON
- How to pass the values to the highcharts?
- JQuery-UI Slider Auto Increments But Does Not Fire Slide Event
- How do I export the content of a page as either jpg or pdf with Highcharts and scrollable data?
- Highstock chart doesn't show after it has been cleared
- Recreating a highcharts donut chart in highcharter
- Highcharts: moving yAxes from left to right
- Convert JSON data into format in Highcharts' basic line chart