Update datasets of Candlestick chart

Discussion about JFreeChart related to stockmarket charts.
Locked
gerlun
Posts: 9
Joined: Mon Feb 11, 2008 4:32 pm

Update datasets of Candlestick chart

Post by gerlun » Mon Feb 11, 2008 4:37 pm

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!!

Ryan Kitlitz
Posts: 2
Joined: Fri Jul 12, 2013 4:03 pm
antibot: No, of course not.

Re: Update datasets of Candlestick chart

Post by Ryan Kitlitz » Sun Jul 14, 2013 3:25 am

Did you ever find a solution for this? I am having exactly the same problem.

david.gilbert
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

Post by david.gilbert » Thu Jul 25, 2013 7:58 am

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked