<?php
require_once('GoogleChart.class.php');
$range = range(25,100,8);
shuffle($range);
$graph = new QGoogleChart();
$graph ->setSize(120, 88)
->setType('line')
->setSubtype('sparkline')
->setAxis(array("x","y"))
->setAxisStyles(array(0, '#000000', 7))
->setAxisStyles(array(1, '#000000', 7))
->setMarkers(array('spark', '#C6D9FD',1,0,5))
->setMarkers(array('spark', '#4D89F9',0,0,1))
->setGridLines(array(20, 50));
$graph ->addData($range)
->addData($range)
->render();
?><img src="<?php echo $graph->getURL()?>"/>
|