Hi,
the following code throw an strange exception "Java.lang.ClasCastException":
and i don't find why he send this Exception.
XYPlot p=chart.getXYPlot();
p.setRangeAxis(new VerticalLogarithmicAxis());
Any idea ???
Thx for all.
Strange Exception
Re: Strange Exception
It's probably happening in the getXYPlot() method. This is a convenience method that casts the plot to XYPlot...it will fail if the underlying plot is not an XYPlot (for example, most of the bar charts are generated using CategoryPlot not XYPlot).
Regards,
DG.
Regards,
DG.