What's the meaning of getVolumeValue

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
YaoYue

What's the meaning of getVolumeValue

Post by YaoYue » Thu Mar 14, 2002 9:03 am

Hi David,
I encounter a problem when implements the HighLowDataset interface,
what's the meaning of the method
java.lang.Number getVolumeValue(int series, int item)
Returns the volume for the specified series and item.

Regards,

David Gilbert

Re: What's the meaning of getVolumeValue

Post by David Gilbert » Thu Mar 14, 2002 9:46 am

The HighLowDataset is intended for plotting financial data, showing the opening price, closing price, and the highest and lowest price for a trading period (usually one day). Another useful piece of information is the trading volume (number of shares or futures contracts or whatever) for the day. So that's what getVolumeValue(...) should return. If you don't have the data, just return zero.

The high-low plot in JFreeChart ignores the volume anyway...but in the future it may get used.

Regards,

Dave Gilbert

YaoYue

Re: What's the meaning of getVolumeValue

Post by YaoYue » Thu Mar 14, 2002 10:25 am

Hi David,
Oh.Thanks.
I guess the reason that ignores the volume is volume maybe far away from the range of High/Low/Open/Close,and JFreeChart still can not label number in the plot,so it is difficult to express.When included volume,it also can label the value of each data in the plot(like BarPlot,LinePlot and so on)
Waiting for it.


Regards,

Locked