gaps in data

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

gaps in data

Post by barry » Fri Oct 11, 2002 10:00 pm

HI,

I am building a XYPlot , the data represents stock prices coming from a file. The data has gaps (as it should) , that is no data for Saturdays, Sundays and Holidays.

I would like the plot to be continuous and NOT show the gaps.


The data is of type HighLowDataset and I am packing arrays continuously and I am not placing NULLs anywhere.

Any suggestions?

barry

Dave Gilbert

Re: gaps in data

Post by Dave Gilbert » Mon Oct 14, 2002 12:14 pm

Hi Barry,

The problem at present is that the DateAxis class represents a continuous time line, and has no way to exclude certain days (e.g. Saturdays and Sundays). It will be possible to write a segmented date axis to "close the gaps" - this is on the to-do list, but not right near the top at present.

Regards,

DG.

btahlor

Re: gaps in data

Post by btahlor » Wed Oct 16, 2002 7:15 am

Dave,

I can simiply change the Horizontal axis value from Date values to a sequential set of Integers , but then how would I use the HiLowData set without a Dates.

also, After the plot is generated, the "Saturdays and Sundays" gaps will be gone, but I then would like to replace the Horizontal Interger labels with a Date range of labels , is this possible without affecting the plot.

Barry

Locked