|
Gantt: shift date/time scale by 6 hours |
Posted by Marko on Mar-27-2013 17:32 |
|
Hi
I have a PHP Gantt chart similar to the one in your gallery: http://www.advsofteng.com/gallery_gantt.html except for the multy format, which is day based:
setMultiFormat(StartOfDayFilter(), "<*font=arialbd.ttf*>" . $DateAxisDayFormat1, StartOfHourFilter(), $DateAxisDayFormat2);
I'm searching a way to shift the starting hour by 6 hours: day should start with 6:00 AM, see attached image. Can you please take a look. Thanks.
|
Re: Gantt: shift date/time scale by 6 hours |
Posted by Peter Kwan on Mar-28-2013 02:04 |
|
Hi Marko,
I assume you are using Axis.setDateScale to control the date scale. In this case, if you want the scale to be from 6:00am to the 6:00am of the next day, you can just use these two time instances in set date scale. For example:
$c->yAxis->setDateScale(chartTime(2013, 3, 28, 6, 0, 0), chartTime(2013, 3, 29, 6, 0, 0), 3600);
Hope this can help.
Regards
Peter Kwan |
|