From: Nathaniel G. A. <nat...@ya...> - 2003-06-16 19:40:41
|
> > with a scrollbar at the bottom. Moving the scrollbar, its listener > would know how to adjust the six charts in sync with each other. > So no OHLC stock bars, but each open, high, low, close could be > plotted as individual lines? > did you look at the sample Stock Chart? > How would the real-time updates work? I am not sure what you are after. You add values to your data set and render the chart again. There are Interfaces in addition to an Implementation of the data structures, so you could implement your own data sets if you do not like the ones provided. Due to the generic nature of this library, very few assumptions can be made about optimizing the rendering of real time data. Can you think of any? Remember the sizing and placement of all the things on the chart are driven by the data sets, such as vertical axis labels, number of scale items, etc... So, unless you can make assumptions about your data set, such as, all values fall within 0 - 100 and I always want 5 items in the scale starting at zero with an increment of 20, and i am using horizontal x-axis labels, or my labels never change, etc... then you could say, I will only redraw the plot area on each data item change as that is the only thing that will change in teh rendered image. The source is freely available and you can customize it to render however you like, such as caching sizing values, and setting clipping regions based on assumptions to your data. ---nathaniel ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |