Beispiel #1
0
 ,array(2010,47,'u32q',0.12)
 ,array(2010,48,'u32q',0.14)
 ,array(2011,49,'u32q',0.14)
 ,array(2011,50,'u32q',0.24)
 ,array(2011,51,'u32q',0.26)
 ,array(2011,52,'u32q',0.67)
 ,array(2011,53,'u32q',1.00)
       ) );
       


// CHART /////////////////////////////////////////////////////

$chart = new StepChart();

$chart->yscale = 1.7;
$chart->yAxis(axisPercent(axis10()));
$chart->xAxis(axisYrMth(),6.0);

$chart->steps(GP4,$d[0]);
$chart->steps(DEBIAN,$d[1]);
$chart->steps(U32Q,$d[2]);

$chart->title('Cumulative Percentage of Measurements by Month');
$chart->xAxisLegend('month');
$chart->yAxisLegend('cumulative percentage');
$chart->frame();
$chart->complete();

?>
Beispiel #2
0
<?php

header("Content-type: image/png");
// Copyright (c) Isaac Gouy 2009-2013
// LIBRARIES ////////////////////////////////////////////////
require_once LIB_PATH . 'lib_chart.php';
// DATA ////////////////////////////////////////////////////
$d = array(array(array(2006, 0, 'gp4', 0.0), array(2007, 1, 'gp4', 0.01), array(2007, 2, 'gp4', 0.01), array(2007, 3, 'gp4', 0.02), array(2007, 4, 'gp4', 0.02), array(2007, 5, 'gp4', 0.03), array(2007, 6, 'gp4', 0.12), array(2007, 7, 'gp4', 0.12), array(2007, 8, 'gp4', 0.15), array(2007, 9, 'gp4', 0.16), array(2007, 10, 'gp4', 0.17), array(2007, 11, 'gp4', 0.19), array(2007, 12, 'gp4', 0.21), array(2008, 13, 'gp4', 0.27), array(2008, 14, 'gp4', 0.31), array(2008, 15, 'gp4', 0.4), array(2008, 16, 'gp4', 0.55), array(2008, 17, 'gp4', 0.73), array(2008, 18, 'gp4', 0.79), array(2008, 19, 'gp4', 1.0)), array(array(2006, 0, 'debian', 0.0), array(2007, 1, 'debian', 0.14), array(2007, 2, 'debian', 0.15), array(2007, 3, 'debian', 0.16), array(2007, 4, 'debian', 0.24), array(2007, 5, 'debian', 0.26), array(2007, 6, 'debian', 0.29), array(2007, 7, 'debian', 0.29), array(2007, 8, 'debian', 0.29), array(2007, 9, 'debian', 0.29), array(2007, 10, 'debian', 0.31), array(2007, 11, 'debian', 0.38), array(2007, 12, 'debian', 0.89), array(2008, 13, 'debian', 0.89), array(2008, 14, 'debian', 1.0)), array(array(2012, 72, 'u32', 0.0), array(2013, 73, 'u32', 0.13), array(2013, 74, 'u32', 0.17), array(2013, 75, 'u32', 0.2), array(2013, 76, 'u32', 0.24), array(2013, 77, 'u32', 0.28), array(2013, 78, 'u32', 0.3), array(2013, 79, 'u32', 0.34), array(2013, 80, 'u32', 0.38), array(2013, 81, 'u32', 0.57), array(2013, 82, 'u32', 0.82), array(2013, 83, 'u32', 0.92), array(2013, 84, 'u32', 0.95), array(2014, 85, 'u32', 1.0)));
// CHART /////////////////////////////////////////////////////
$chart = new StepChart();
$chart->yscale = 1.7;
$chart->yAxis(axisPercent(axis10()));
$chart->xAxis(axisYrMth(), 3.4);
$chart->steps(GP4, $d[0]);
$chart->steps(DEBIAN, $d[1]);
$chart->steps(U32, $d[2]);
$chart->title('Cumulative Percentage of Measurements by Month');
$chart->xAxisLegend('month');
$chart->yAxisLegend('cumulative percentage');
$chart->frame();
$chart->complete();