heading(get_string('evolutionbymonth', 'tracker', $alltickets), 3) ?>
|
reset();
$current = $dateiter->current();
while (strcmp($current, $highest) <= 0){
?>
|
next();
$current = $dateiter->current();
}
?>
|
reset();
$current = $dateiter->current();
$last = 0;
while (strcmp($current, $highest) <= 0){
?>
$new";
echo ' ';
echo ($diff > 0) ? "(+$diff)" : '' ;
$last = $new;
?>
|
next();
$current = $dateiter->current();
}
?>
|
reset();
$current = $dateiter->current();
while (strcmp($current, $highest) <= 0){
?>
$new";
echo ' ';
echo ($diff > 0) ? "(+$diff)" : '' ;
$last = $new;
?>
|
next();
$current = $dateiter->current();
}
?>
|
reset();
$current = $dateiter->current();
while (strcmp($current, $highest) <= 0){
?>
next();
$current = $dateiter->current();
}
?>
|
reset();
$current = $dateiter->current();
while (strcmp($current, $highest) <= 0){
?>
next();
$current = $dateiter->current();
}
?>
|
reset();
$current = $dateiter->current();
while (strcmp($current, $highest) <= 0){
?>
next();
$current = $dateiter->current();
}
?>
$v){
$data[] = array($k,$v);
}*/
foreach($totalsum as $k => $v){
// $data[0][] = array($k, $v);
$data[0][] = array($k, $trendsum[$k]);
$data[1][] = array($k, $testsum[$k]);
$data[2][] = array($k, $ressum[$k]);
}
$jqplot = array(
'title' => array(
'text' => get_string('generaltrend', 'tracker'),
'fontSize' => '1.3em',
'color' => '#000080',
),
'legend' => array(
'show' => true,
'location' => 'e',
'placement' => 'outsideGrid',
'showSwatch' => true,
'marginLeft' => '10px',
'border' => '1px solid #808080',
'labels' => array(get_string('activeplural', 'tracker'), get_string('intest', 'tracker'), get_string('resolvedplural2', 'tracker')),
),
'axesDefaults' => array('labelRenderer' => '$.jqplot.CanvasAxisLabelRenderer'),
'axes' => array(
'xaxis' => array(
'label' => get_string('month', 'tracker'),
'renderer' => '$.jqplot.CategoryAxisRenderer',
'pad' => 0
),
'yaxis' => array(
'autoscale' => true,
'tickOptions' => array('formatString' => '%2d'),
'rendererOptions' => array('forceTickAt0' => true),
'label' => get_string('tickets', 'tracker'),
'labelRenderer' => '$.jqplot.CanvasAxisLabelRenderer',
'labelOptions' => array('angle' => 90)
)
),
'series' => array(
array('color' => '#C00000'),
array('color' => '#80FF80'),
array('color' => '#00C000'),
),
);
jqplot_print_graph('plot1', $jqplot, $data, 550, 250, 'margin-top:20px;');
?>
|