Hi mephy,
To use date/time values as the x-coordinate, the method for the area chart is exactly the
same as that for the line layer. For example:
$layer = $c->addAreaLayer($data2, 0x808080ff, "Server #1", 3);
$layer->setXData($myXCoor);
$layer = $c->addAreaLayer($data0, 0x80ff0000, "Server #2", 3);
$layer->setXData($myXCoor);
$layer = $c->addAreaLayer($data1, 0x8000ff00, "Server #3", 3);
$layer->setXData($myXCoor);
In the above, the $myXCoor can be an array of date/time in the chartTime representation
(seconds elapsed since Jan 1, 0001 00:00:00).
Hope this can help.
Regards
Peter Kwan |