Search found 1 match

by AdamST
Wed Feb 26, 2014 12:09 am
Forum: JFreeChart
Topic: Why does chart.removeLegend(); change the colors of a chart?
Replies: 4
Views: 8352

Re: Why does chart.removeLegend(); change the colors of a ch

Hi, I happened to accidentally find out a counter measure that works fine. Try this line after " removeLegend(); " or " chart.getLegend().setVisible(false); "; it will get your colours back to the previous order palette. JFreeChart chart; [code here...] chart.getXYPlot().setSeriesRenderingOrder(Seri...