jFreeChart: How to hide items from legend?
I need to hide every second/third/forth item from the legend. IS there a way to achieve this in jFreeChart? thanks! Jason I have tried the above suggestion but it didn't seem to work for me. If you just want to remove series from the legend you can do it with the setSeriesVisibleInLegend() method. My scenario was that some of my series do not have a legend key. If they don't have a legend key then the series shouldn't be visible in the legend. I implemented this with the following code: for(int i = 0; i < seriesList.size(); i++){ if(seriesList.get(i).getKey() == null || seriesList.get(i)