score:3
i don't think it's possible to alter this behavior. instead you need to remove the point all together for the other slices to add up to 100. here is an example that shows the difference between legend-toggle and point remove: jsfiddle
score:1
this feature is now available out of the box as plotoptions.pie.ignorehiddenpoint
series: [{
ignorehiddenpoint: true,
type: 'pie',
...
}]
auto redraw/recalculate pie on legend | highchart & highstock @ jsfiddle
score:2
i think this should be the standard behavior :)
opts.plotoptions.pie.point.events.legenditemclick = function() {
if (this.visible) {
this['y_old'] = this.y;
this.update(0);
}
else {
this.update(this.y_old);
}
};
now when you click on a legend item the pie chart slice will disappear
if you want to show the percentage (100% without the now missing slice) you have to define your tooltip (or legend) as:
opts.tooltip.formatter = function() {
var s = '<b>' + this.point.name + '</b>: ' + this.percentage.tofixed(2) + '%';
return s;
};
Source: stackoverflow.com
Related Query
- redraw pie chart in highchart
- Highchart - Redraw Chart after Window is resized
- highchart chart redraw method is not refreshing the chart
- Highchart Axis Update/ chart redraw
- using angular directive to draw highchart pie chart but when i am using it in success function it is not working
- Highchart not displaying the pie chart with Ajax data
- Highchart JSON pie chart display Slice undefined
- Redraw the pie chart in oval shape highcharts
- Pie Chart for Data on Different Things with HighChart
- HighChart Pie Chart click on legend item to trigger drilldown
- Add new data to a Highchart pie chart dynamically
- Highchart Pie chart with partially colored slices
- Draw pie chart using spring boot, thymeleaf, js, highchart but can't
- pie chart legend overlap with older legend when replace series in highchart
- Highcharts display label for pie chart using html table as data source
- Highchart Pie Chart label size in Wordpress
- my highchart is currently is not working with pie spline chart in updating after rendering chart
- Highchart Pie Chart click on hover
- Pie chart taking more load time than line chart in highchart
- Highchart 3D Pie Chart Label color?
- Highchart - How do I create the attached image gauge within a semicircle pie chart
- Set Color for Pie Chart using HighChart + JSON data
- Highchart Pie Chart not working properly with series
- Highchart not showing 0 data correctly for pie chart
- how remove picture frame for Highchart chart pie
- How to make pie chart with data border radius in highchart
- Highchart How to set pie chart sliced distance gap wider to one another
- x-axis, y-axis lines does not appear, when I include 3D chart library of HighChart in my code
- Data label not showing in some pie chart handles Highchart
- Export HighChart 3D pie chart into png is not working
More Query from same tag
- HighCharts PieChart with just one segment doesn't show a label
- How to export the whole page or html content with Highcharts not just the chart?
- How to place a chart not from the beginning of the X axis
- Not able to have highcharts x-axis labels max
- Highcharts convert x-axis time to localtime
- Highcharts xAxis formatter export to csv
- Highchart's selection-function updating with delay
- Colors doesn't change using Highcharts.setOptions
- Static Highcharts graphic with external csv data and dynamic footnote
- Framework for a Business Dashboard - MVC, browser accessible
- Need assistance adding an additional series to a Highcharts graph using a SharePoint list and PSServices
- Adding different style to a series in legend in Highcharts
- Highcharts Column Zones
- Display tooltip on mouseover in the Highchart Stack Column Total
- Zoom in Highmaps based on Lat/Long
- How do I export the content of a page as either jpg or pdf with Highcharts and scrollable data?
- Jquery, Highcharts enable html exportChart
- Highcharts exporting functionality
- How to set minimum height of data element of series in stacked bar chart?
- Highcharts drilldown on area chart
- Node-highcharts module not found
- How to send JSON using JSF2 Primefaces Request Context to Highchart?
- data from AJAX json request not loading in HighChart
- responsive highcharts with dynamic font size and widths
- stop data being added with radio button highchart
- How do I access halo on column click event?
- Webpack Highcharts Plugin IIFE
- Export HighChart as an image in excel file together with the other page contents
- Updating highcharts gauge with JSON
- Translate x axis points into years