I have a CandlestickPlot that is behaving badly for a single datapoint and I'm wondering if you might be able to explain the problem.
I'm plotting a year's worth of data and all is fine except for Friday March 6,2009. The last tick mark on the x-axis for March 6 is at 15:45. There are no further tick marks on the x-axis until 9:30 Monday March 9, 2009. The gap between these two tick marks is about half the width of the entire x-axis! All the other minor tick marks on the x-axis are drawn correctly and are spaced at intervals about 1/50th of the total axis length.
The candle stick for 16:00 March 6, 2009 is plotted at the correct position over the x-axis (even though there is no tick ) the result is a big fat bar that spans half the chart.
Any idea what might be causing this problem?
I have specified a 5-day week and a day that starts at 9:30am and ends at 4:00pm. The other Friday bars that are plotted at 16:00 are working fine and appear , as I expect, over the Monday 9:30 tick.
We are not able to reproduce the problem you describe. Please send us the complete source to the simplest example program which reproduces the problem and we will investigate further.
I created a simple program that illustrates the problem.
I saved my TimeGroupDataset to a CSV file to send to you along with the program, however the sample program does not display any datapoints when I use the csv file to reconstruct my dataset: I suspect the x-axis dates where not interpreted correctly from the CSV file. Although I specified a SimpleDateFormat (yyMMdd HH:mm:ss)for the CSV object at the time of writing the dataset (dataset.writeGroupDataset(csv, filename)) the resulting csv file contains a raw number (like 1.2363606E12) in the first column, is this correct?
If I can get this example to work I will send you both the sample program and the csv file.