title->set('Star marks'); $graph->title->setFont(new Tuffy(12)); $graph->title->setColor(new DarkRed); $plot = new LinePlot(array(5, 3, 4, 7, 6, 5, 8, 4, 7)); // Change plot size and position $plot->setSize(0.76, 1); $plot->setCenter(0.38, 0.5); $plot->setPadding(30, 15, 38, 25); $plot->setColor(new Orange()); $plot->setFillColor(new LightOrange(80)); // Change grid style $plot->grid->setType(Line::DASHED); // Add customized marks $plot->mark->setType(Mark::STAR); $plot->mark->setFill(new MidRed); $plot->mark->setSize(6); // Change legend $plot->legend->setPosition(1, 0.5); $plot->legend->setAlign(Legend::LEFT); $plot->legend->shadow->smooth(TRUE); $plot->legend->add($plot, 'My line', Legend::MARK); $graph->add($plot); $graph->draw(); ?>