setAntiAliasing(TRUE); $x = array( 3, 1, 5, 6, 3, 8, 6 ); $plot = new LinePlot($x); $plot->grid->setNoBackground(); $plot->title->set("Filled line and marks"); $plot->title->setFont(new Tuffy(10)); $plot->title->setBackgroundColor(new Color(255, 255, 255, 25)); $plot->title->border->show(); $plot->title->setPadding(3, 3, 3, 3); $plot->title->move(-20, 25); $plot->setSpace(4, 4, 10, 0); $plot->setPadding(25, 15, 10, 18); $plot->setBackgroundGradient( new LinearGradient( new Color(210, 210, 210), new Color(255, 255, 255), 0 ) ); $plot->setColor(new Color(0, 0, 150, 20)); $plot->setFillGradient( new LinearGradient( new Color(150, 150, 210), new Color(245, 245, 245), 0 ) ); $plot->mark->setType(Mark::CIRCLE); $plot->mark->border->show(); $y = array( 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche' ); $plot->xAxis->setLabelText($y); $plot->xAxis->label->setFont(new Tuffy(7)); $graph->add($plot); $graph->draw(); ?>