$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); // Add a bar plot $x = array(16, 16, 12, 13, 11, 18, 10, 12, 11, 12, 11, 16); $plot = new BarPlot($x, 1, 2); $plot->setBarColor(new MidYellow()); $plot->setBarPadding(0.15, 0.15); $plot->barShadow->setSize(3); $plot->barShadow->smooth(TRUE); $plot->barShadow->setColor(new Color(200, 200, 200, 10)); $plot->move(1, 0); $group->legend->add($plot, "Yellow bar", LEGEND_BACKGROUND); $group->add($plot); // Add a bar plot $x = array(20, 25, 20, 18, 16, 25, 29, 12, 15, 18, 21, 26); $plot = new BarPlot($x, 2, 2); $plot->setBarColor(new Color(120, 175, 80, 10)); $plot->setBarPadding(0.15, 0.15); $plot->barShadow->setSize(3); $plot->barShadow->smooth(TRUE); $plot->barShadow->setColor(new Color(200, 200, 200, 10)); $group->legend->add($plot, "Green bar", LEGEND_BACKGROUND); $group->add($plot); // Add a second bar plot $x = array(12, 14, 10, 9, 10, 16, 12, 8, 8, 10, 12, 13); $plot = new BarPlot($x, 2, 2);