Update datasets of Candlestick chart

Discussion about JFreeChart related to stockmarket charts.

Update datasets of Candlestick chart

Postby 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!!
gerlun
 
Posts: 9
Joined: Mon Feb 11, 2008 4:32 pm

Re: Update datasets of Candlestick chart

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

Did you ever find a solution for this? I am having exactly the same problem.
Ryan Kitlitz
 
Posts: 2
Joined: Fri Jul 12, 2013 4:03 pm

Re: Update datasets of Candlestick chart

Postby 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: Ask your company to buy the JFreeChart Developer Guide
:idea: Check out other products sold by my company Object Refinery Limited
david.gilbert
JFreeChart Project Leader
 
Posts: 11653
Joined: Fri Mar 14, 2003 10:29 am


Return to JFreeChart - Stockmarket

Who is online

Users browsing this forum: No registered users and 1 guest