1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
if($alarme[0] == $donnees[4])
{
$plot = new BarPlot($mes_valeurs);
$blue = new Color(51, 157, 33);
$plot->setBarColor($blue);
$plot->xAxis->setLabelText($mes_dates);
$plot->xAxis->label->setFont(new Tuffy(9));
$plot->yAxis->label->setFont(new Tuffy(9));
$plot->setSpace(5, 5, NULL, NULL);
$plot->barShadow->setSize(3);
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
$plot->barShadow->smooth(TRUE);
$plot->xAxis->setLabelText($mes_dates);
$plot->xAxis->label->setFont(new Tuffy(9));
$plot->yAxis->label->setFont(new Tuffy(9));
$plot->setSpace(5, 5, NULL, NULL);
$plot->barShadow->setSize(3);
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
$plot->barShadow->smooth(TRUE);
}
else
{
$plot = new BarPlot($mes_valeurs);
$blue = new Color(0, 0, 0);
$plot->setBarColor($blue);
$plot->xAxis->setLabelText($mes_dates);
$plot->xAxis->label->setFont(new Tuffy(9));
$plot->yAxis->label->setFont(new Tuffy(9));
$plot->setSpace(5, 5, NULL, NULL);
$plot->barShadow->setSize(3);
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
$plot->barShadow->smooth(TRUE);
$plot->xAxis->setLabelText($mes_dates);
$plot->xAxis->label->setFont(new Tuffy(9));
$plot->yAxis->label->setFont(new Tuffy(9));
$plot->setSpace(5, 5, NULL, NULL);
$plot->barShadow->setSize(3);
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
$plot->barShadow->smooth(TRUE);
} |
Partager