@Override protected Component getChart() { Chart chart = new Chart(ChartType.PIE); Configuration conf = chart.getConfiguration(); conf.setTitle("Browser market shares at a specific website, 2010"); PlotOptionsPie plotOptions = new PlotOptionsPie(); plotOptions.setStartAngle(45); plotOptions.setEndAngle(180); plotOptions.setCursor(Cursor.POINTER); Labels dataLabels = new Labels(true); dataLabels.setFormatter("'<b>'+ this.point.name +'</b>: '+ this.percentage +' %'"); plotOptions.setDataLabels(dataLabels); conf.setPlotOptions(plotOptions); conf.setSeries(getBrowserMarketShareSeries()); chart.drawChart(); return chart; }