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:
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:
AddPoint (samling (30.20.20.20.20), ”Serie1”); $DataSet->AddPoint (samling ($_SESSION [”användare”] [”frodigt”], ”Feb”, ”fördärvar”, ”Apr”, ”maj”), ”Serie2”); $DataSet->AddAllSeries (); $DataSet->SetAbsciseLabelSerie (”Serie2”); // initialiserar grafen $Test = ny pChart (300.300); $Test->loadColorPalette (”softtones.txt”); $Test->drawFilledRectangle (0.0.300.300.250.250.250); // skriver titeln /*$Test->setFontProperties (”fonts/HMH-font.ttf”, 15); * $Test->setFontProperties (”$pathTopChart/Fonts/tahoma.ttf”, 15); $Test->drawTitle (10.20, ”Salar per månad”, 100.100.100); // attraktion som pien kartlägger $Test->setFontProperties (”$pathTopChart/Fonts/tahoma.ttf”, 8); $Test->drawFlatPieGraph ($DataSet->GetData (), $DataSet->GetDataDescription (), 120.150.80, PIE_PERCENTAGE_LABEL, 4); $Test->drawPieLegend (230.55, $DataSet->GetData (), $DataSet->GetDataDescription (), 250.250.250 som, är falska); $Test->Stroke (); ? >