Hi,

in my report I have a line chart with 2 series.
With beanshell I can hide the values of one series with
Code:
chart.getPlot().getRenderer().setSeriesItemLabelsVisible(1,false,true);
Now I need to make only that line dashed or dotted.
This code makes all the series dotted
Code:
chart.getPlot().getRenderer().setStroke(
 new BasicStroke(1f, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL,1.0f,new float[] {2.0f, 6.0f}, 0.0f)
 );

To make only one series dotted I tried with this, but without success:
Code:
chart.getPlot().getRenderer().setSeriesStroke(1,
new BasicStroke(1f, BasicStroke.JOIN_ROUND, BasicStroke.JOIN_BEVEL,1.0f,new float[] {2.0f, 6.0f}, 0.0f)
);
Do you have any suggestions?


Regards,
Stefano