* This work is hereby released into the Public Domain. * To view a copy of the public domain dedication, * visit http://creativecommons.org/licenses/publicdomain/ or send a letter to * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. * */ require_once "../../LinePlot.class.php"; require_once "../../BarPlot.class.php"; $graph = new Graph(600, 250); $graph->setBackgroundColor(new Color(0xf4, 0xf4, 0xf4)); $graph->shadow->setSize(3); $graph->title->set("Evolution"); $graph->title->setFont(new Tuffy(15)); $graph->title->setColor(new Color(0x0, 0x0, 0x8b)); $group = new PlotGroup(); $group->setSize(0.82, 1); $group->setCenter(0.41, 0.5); $group->setPadding(35, 26, 40, 27); $group->setSpace(2, 2); $group->grid->setColor(new Color(0xc4, 0xc4, 0xc4)); $group->grid->setType(LINE_DASHED); $group->grid->hideVertical(TRUE); $group->grid->setBackgroundColor(new White()); $group->axis->left->setColor(new DarkGreen()); $group->axis->left->label->setFont(new Font2()); $group->axis->right->setColor(new DarkBlue()); $group->axis->right->label->setFont(new Font2()); $group->axis->bottom->label->setFont(new Font2()); $group->legend->setPosition(1.18); $group->legend->setTextFont(new Tuffy(8)); $group->legend->setSpace(10);