javascript - How to exclude series from pie-chart if there are a few of them (Highcharts.js) -


please me out - should in order hide 1 particular segment of 1 particular chart (also want rest of pie fit vacated space animation) ?

here code have 2 pies different sets of data: http://jsfiddle.net/andreypoznyak/phjqh/3/

 $('#container').highcharts({     chart: {         type: 'pie'     },     title: null,     series: [{         data: [29.9, 71.5, 106.4, 129.2],         center: ["25%", "50%"]     },{         data: [{             color: "red",             y: 10,             name: "a"         }, {             color: "yellow",             y: 20,             name: "b"         }, {             color: "green",             y: 25,             name: "c"         }],         center: ["75%", "50%"]     }] }); 

you can use visible paramter point (one slice) http://api.highcharts.com/highcharts#plotoptions.series.visible

http://jsfiddle.net/phjqh/4/

{             color: "red",             y: 10,             visible:false,             name: "a"         } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -