Very wierd candles....

Discussion about JFreeChart related to stockmarket charts.
Locked
VT
Posts: 37
Joined: Wed Jun 02, 2004 6:39 pm
Contact:

Very wierd candles....

Post by VT » Fri Jul 16, 2004 3:24 pm

Hello yet again. I am at the point of adding candlesticks to a chart servlet and i ran into a serious problem. For the width in the renderer i set it to "-1" so that it chooses width automatically, but the problem is when i get into intervals of a year or two they get ridiculously small. So i wanted to draw every 5th one or whatever the interval is, however this raises an issue. If i use all the same dates for the domain axis and only set some of the values for the high, low, open, close and volume array then i still get narrow candles and the ones i skipped over are atthe bottom at the zero value. When i only add the dates that i dont skip i get an exception because this is all in a combined domain xy plot.

Does anyone have any suggestions on how i can skip over some of the data so that the other candles actually expand over the area of those that i skipped?

Locked