score:0

pasting some info in here as a pointer for people that would like to do the above with javascript outside of highcharts, like i did myself.

for(i=0; i<datajson.finished.length; i++) {
    //console.info(i);
    if(datajson.finished[i].name !== '_all_' && datajson.finished[i].name !== 'anders')         {
      tempvalue=0;
      for(j=0; j<datajson.finished[i].data.length; j++) { tempvalue += datajson.finished[i].data[j]; }
      if(tempvalue / totalvalue > 0.02) {
        piedata.push({ name:datajson.finished[i].name, y:tempvalue });
      } else andersvalue += tempvalue;
    }
  }

  //console.info(piedata);
  piedata.sort(function(a,b) {return (a.y > b.y) ? -1 : ((b.y > a.y) ? 1 : 0);});
  piedata.push({ name: "overig", y: andersvalue });

score:6

no. this behaviour is not built into highcharts.

the easiest way to achieve this is by manually changing the data you pass to the chart. ie if you do the grouping into a category 'others' before you pass the data and render the chart


Related Query

More Query from same tag