
thanks, bye
Yes. Take a look at HideSeriesDemo1 in the demo. If you have bought the Developer's Guide, you can view the source code.truman wrote:Is it possible, in a line chart, to customize legend, having for each item a checkbox to show/hide items in chart?
Code: Select all
public void setSeriesVisible(int series, java.lang.Boolean visible)
Code: Select all
XYItemRenderer renderer = (XYItemRenderer) plot.getRenderer();
renderer.setSeriesVisible(0, true);
Someone sees what's wrong ?The method setSeriesVisible(Boolean, boolean) in the type XYItemRenderer is not applicable for the
arguments (int, boolean)
Code: Select all
XYItemRenderer renderer = (XYItemRenderer) plot.getRenderer();
renderer.setSeriesVisible(1, new Boolean(true));