Dynamic OHLC chart - inserting new bars

Discussion about JFreeChart related to stockmarket charts.
Locked
GeniuZ
Posts: 9
Joined: Sun Apr 05, 2009 9:14 am

Dynamic OHLC chart - inserting new bars

Post by GeniuZ » Sun Apr 05, 2009 9:45 am

Hello, I can't find how to dynamically add bars to existing OHCL chart?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Dynamic OHLC chart - inserting new bars

Post by david.gilbert » Mon Apr 06, 2009 8:41 am

Are you using the OHLCSeriesCollection class as your dataset? OHLCSeries allows you to add new items.
David Gilbert
JFreeChart Project Leader

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

GeniuZ
Posts: 9
Joined: Sun Apr 05, 2009 9:14 am

Re: Dynamic OHLC chart - inserting new bars

Post by GeniuZ » Wed Jun 10, 2009 12:28 pm

I use custom DefaultOHLCDataset with added List field.
I will test OHLCSeriesCollection, thank you for help.

GeniuZ
Posts: 9
Joined: Sun Apr 05, 2009 9:14 am

Re: Dynamic OHLC chart - inserting new bars

Post by GeniuZ » Wed Jun 10, 2009 12:37 pm

I tested OHLCSeriesCollection, it is functional, but loading performace is bad.
You can implement List<DefaultOHLCDataItem> to ie. DefaultListOHLCDataset?
I can send you source code. It is little change and somebody can use it...

Locked