I posted this problem on the jpgraph forum, but I don't think that gets as much traffic and I thought I might find someone with some info on this issue here:
Hi;
I'm excited about the possibilities of the jpgraph_date.php date axis, but I can't seem to get it to restrict the X axis to single days: some default seems to be set that always gives me 2 points for each day along the X-axis (ie. midnight and noon). I'm dealing with data that should typically only have one observation per day. So, on the X-axis (date) I only want to see:
2005-09-06
2005-09-07
2005-09-08
2005-09-09
etc.
NOT
2005-09-06 00:00
2005-09-06 12:00
2005-09-07 00:00
2005-09-07 12:00
A sample of the data array (dates) I have is lilke so:
$xdata = array('1125982800', '1126069200', '1126155600', '1126242000', '1126328400', '1126414800', '1126501200');
and sample observation measures are
$data = array('-1','0','1','2','3','4');
I'm just getting started with this and so far I have just substituted my sample data into the dateaxisex2.php code in the /Examples folder. I have not messed with the rest of the code. Everything works fine except for the darned double dates. I can't seem to find anything in the manual or class reference that seems to bear on this issue specifically.