suppose I have 4 slices having 20%, 30%, 30% and 20%. If I make 4th slice(20%) inactive, the other slices should adjust themselves and occupy 100 %. how to do this in highcharts? Thank you.
相关问题
- How can I change the colors of the slices in pie c
- How to make limits on the Y axis be the same using
- Issues using highcharts node export server from Cl
- Achart engine Onclick pie chart slice not working
- Rails collecting and rendering JSON data in to a H
相关文章
- Mercurial Commit Charts / Graphs [closed]
- Change color of bars depending on value in Highcha
- Changing Highcharts data series type dynamically
- Google Chart veritcal axis with percentage sign
- Google Combo Chart add horizontal and vertical lin
- ChartJS. Change axis line color
- Center align title in Google Chart
- C# dashed lines in chart series?
This feature is now available out of the box as
plotOptions.pie.ignoreHiddenPoint
Auto Redraw/Recalculate Pie on Legend | Highchart & Highstock @ jsFiddle
I think this should be the standard behavior :)
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:
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