Bug in CandlestickChart.
Calling:
CategoryPlot plot = candlestickChart.getCategoryPlot();
Gives out:
Exception in thread "main" java.lang.ClassCastException: org.jfree.chart.plot.XYPlot
at org.jfree.chart.JFreeChart.getCategoryPlot(JFreeChart.java:814)
at
xxx...
Logged In: NO
*version 1.0.8a
Logged In: YES
user_id=112975
Originator: NO
This is not a bug. You should call getPlot() and cast it to an XYPlot (given a candlestick chart). The getCategoryPlot() and getXYPlot() methods do the cast for you, but you still have to know which one to call - I should probably deprecate then remove those methods, they're not especially helpful.