I used ohlcSeries to draw the candlestick chart but I can't update the datasets. So, how to update the datasets of candlestick chart?
For another Line chart. I used TimeSeries to draw. There is a method AddOrUpdate() to update the dataset and I can also remove the timeseries by clear() whether there is no such methods for ohlcSeries.
Thanks a lot!!
Update datasets of Candlestick chart
-
- Posts: 2
- Joined: Fri Jul 12, 2013 4:03 pm
- antibot: No, of course not.
Re: Update datasets of Candlestick chart
Did you ever find a solution for this? I am having exactly the same problem.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: Update datasets of Candlestick chart
There are two dataset implementations you can use for the OHLC charts : DefaultOHLCDataset and OHLCSeriesCollection. The former doesn't provide any facilities to update the data, whereas the latter at least allows you to add and remove data items. It is an area that could do with some improvement.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

