setAntiAliasing(TRUE); $group = new PlotGroup; $group->setSpace(5, 10, 15, 15); $group->setPadding(40, 40, 25, 25); $group->axis->left->setLabelPrecision(2); for($n = 0; $n < 4; $n++) { $x = array(); for($i = 0; $i < 6; $i++) { $x[] = (cos($i * M_PI / 100) / ($n + 1) * mt_rand(600, 1400) / 1000 - 0.5) + 1; } $plot = new BarPlot($x, 1, 1, (3 - $n) * 7); $plot->barBorder->setColor(color()); $plot->barShadow->setSize(3); $plot->barShadow->setPosition(SHADOW_RIGHT_TOP); $plot->barShadow->setColor(new Color(180, 180, 180, 10)); $plot->barShadow->smooth(TRUE); $plot->setBarColor(color(5)); $group->add($plot); } $graph->add($group); $graph->draw(); ?>