Problemas ao Colocar label no jFreeChart

Boa tarde,

Segue meu código, pois não estou entendendo como faço para o renderer estar sendo setado depois acredito que falte algum tipo de grafico.setRenderes(renderer);

JFreeChart grafico = ChartFactory.createBarChart3D("Monitoramento Datas" ,"Dia", "Registros",ds,PlotOrientation.VERTICAL, true, true, false);
                
                CategoryPlot categoryplot = (CategoryPlot) grafico.getPlot();  
                BarRenderer renderer = (BarRenderer) categoryplot.getRenderer();  
                renderer.setBaseItemLabelsVisible(true);    
                ItemLabelPosition p = new ItemLabelPosition(ItemLabelAnchor.CENTER, TextAnchor.CENTER);  
                renderer.setBasePositiveItemLabelPosition(p);  
                renderer.setPositiveItemLabelPositionFallback(p);
                
                
                FileOutputStream arquivo = new FileOutputStream ("grafico.png");
                ChartUtilities.writeChartAsPNG(arquivo, grafico, 1000, 800);
                jLabel1.setIcon(new ImageIcon("grafico.png"));

Please!