0
CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis,
                renderer);  
        plot.setOrientation(orientation);   
        plot.setInsets(new RectangleInsets(10.0, 10.0, 10.0, 10.0));
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);  

How can I change the font color for my dataset? My dataset contains numerical values and I want to make it white while displaying it on the bar chart.

Lundin
  • 195,001
  • 40
  • 254
  • 396
  • plot.setRenderer(renderer); use renderer to define the colors. – SMA Oct 22 '14 at 10:55
  • Override `getItemPaint()`, for [example](http://stackoverflow.com/search?tab=votes&q=user%3a230513%20%5bjfreechart%5d%20GETITEMPAINT). – trashgod Oct 22 '14 at 12:04

0 Answers0