We created a pie chart as code shows below: Is there a simple setting to not show labels when there is no data.

Because when the data doesn't exist for those categories..it shows all labels crunched up..see code below..

Code:
    private Chart<DashboardData> getPieChart() {
    	
        pieChart = new Chart<DashboardData>();
        pieChart.setShadowChart(true);
        pieChart.setStore(pieChartStore);
        
        Gradient slice1 = new Gradient("slice1", 45);
        slice1.addStop(new Stop(0, new RGB(148, 174, 10)));
        slice1.addStop(new Stop(100, new RGB(107, 126, 7)));
        pieChart.addGradient(slice1);
     
        Gradient slice2 = new Gradient("slice2", 45);
        slice2.addStop(new Stop(0, new RGB(17, 95, 166)));
        slice2.addStop(new Stop(100, new RGB(12, 69, 120)));
        pieChart.addGradient(slice2);
     
        Gradient slice3 = new Gradient("slice3", 45);
        slice3.addStop(new Stop(0, new RGB(166, 17, 32)));
        slice3.addStop(new Stop(100, new RGB(120, 12, 23)));
        pieChart.addGradient(slice3);
     
        final PieSeries<DashboardData> series = new PieSeries<DashboardData>();
        series.setAngleField(dashboardProperties.count());
        series.addColor(slice1);
        series.addColor(slice2);
        series.addColor(slice3);
        TextSprite textConfig = new TextSprite();
        textConfig.setFont("arial");
        textConfig.setFontWeight(FontWeight.BOLD);
        textConfig.setTextBaseline(TextBaseline.MIDDLE);
        textConfig.setFontSize(11);
        textConfig.setTextAnchor(TextAnchor.MIDDLE);
        textConfig.setZIndex(15);
        
        SeriesLabelConfig<DashboardData> labelConfig = new SeriesLabelConfig<DashboardData>();
        labelConfig.setSpriteConfig(textConfig);
        labelConfig.setLabelPosition(LabelPosition.START);
        labelConfig.setValueProvider(dashboardProperties.name(), new StringLabelProvider<String>());
        series.setLabelConfig(labelConfig);
        series.setHighlighting(true);
        series.setLegendValueProvider(dashboardProperties.name(), new LabelProvider<String>() {
     
          @Override
          public String getLabel(String item) {
            return item;
          }
        });
        pieChart.addSeries(series);
        
        return pieChart;
    }