Exemplo n.º 1
0
         array_push($arraylegends, $langs->transnoentities("BalanceMinimalDesired"));
     }
     if ($acct->min_allowed) {
         array_push($arraylegends, $langs->transnoentities("BalanceMinimalAllowed"));
     }
     $px2->SetLegend($arraylegends);
     $px2->SetLegendWidthMin(180);
     $px2->SetMaxValue($px2->GetCeilMaxValue() < 0 ? 0 : $px2->GetCeilMaxValue());
     $px2->SetMinValue($px2->GetFloorMinValue() > 0 ? 0 : $px2->GetFloorMinValue());
     $px2->SetTitle($title);
     $px2->SetWidth($WIDTH);
     $px2->SetHeight($HEIGHT);
     $px2->SetType(array('lines', 'lines', 'lines'));
     $px2->setBgColor('onglet');
     $px2->setBgColorGrid(array(255, 255, 255));
     $px2->SetHideXGrid(true);
     //$px2->SetHorizTickIncrement(30.41);	// 30.41 jours/mois en moyenne
     $px2->SetPrecisionY(0);
     $px2->draw($file, $fileurl);
     $show2 = $px2->show();
     unset($px2);
     unset($graph_datas);
     unset($datas);
     unset($datamin);
     unset($dataall);
     unset($labels);
     unset($amounts);
 }
 // Tableau 3 - All time line
 if ($mode == 'showalltime') {
     // Loading table $amounts