$MyData->addPoints(array(24, -25, 26, 25, 25), "Temperature");
$MyData->addPoints(array(1, 2, VOID, 9, 10), "Humidity 1");
$MyData->addPoints(array(1, VOID, 7, -9, 0), "Humidity 2");
$MyData->addPoints(array(-1, -1, -1, -1, -1), "Humidity 3");
$MyData->addPoints(array(0, 0, 0, 0, 0), "Vide");
$MyData->setSerieOnAxis("Temperature", 0);
$MyData->setSerieOnAxis("Humidity 1", 1);
$MyData->setSerieOnAxis("Humidity 2", 1);
$MyData->setSerieOnAxis("Humidity 3", 1);
$MyData->setSerieOnAxis("Vide", 2);
$MyData->setAxisPosition(2, AXIS_POSITION_RIGHT);
$MyData->setAxisName(0, "Temperature");
$MyData->setAxisName(1, "Humidity");
$MyData->setAxisName(2, "Empty value");
/* Associate a color to each axis */
$MyData->setAxisColor(0, array("R" => 102, "G" => 129, "B" => 63));
$MyData->setAxisColor(1, array("R" => 129, "G" => 72, "B" => 63));
$MyData->setAxisColor(2, array("R" => 63, "G" => 89, "B" => 129));
/* Create the abscissa serie */
$MyData->addPoints(array("Jan", "Feb", "Mar", "Apr", "May", "Jun"), "Labels");
$MyData->setSerieDescription("Labels", "My labels");
$MyData->setAbscissa("Labels");
$MyData->setAbscissaName("Months");
/* Create the pChart object */
$myPicture = new pImage(700, 230, $MyData);
/* Draw the background */
$Settings = array("R" => 170, "G" => 183, "B" => 87, "Dash" => 1, "DashR" => 190, "DashG" => 203, "DashB" => 107);
$myPicture->drawFilledRectangle(0, 0, 700, 230, $Settings);
/* Overlay with a gradient */
$Settings = array("StartR" => 219, "StartG" => 231, "StartB" => 139, "EndR" => 1, "EndG" => 138, "EndB" => 68, "Alpha" => 50);
$myPicture->drawGradientArea(0, 0, 700, 230, DIRECTION_VERTICAL, $Settings);