Added Client Session graphing
This commit is contained in:
@@ -137,14 +137,15 @@ function drawChart".$this->_divname."() {
|
||||
private function series() {
|
||||
$return = array();
|
||||
$c = $this->seriescolors();
|
||||
$j = count($c);
|
||||
|
||||
$i = 0;
|
||||
foreach ($this->_axis as $l => $axis) {
|
||||
// @todo This shouldnt be hard coded
|
||||
if ($axis == 'yl')
|
||||
array_push($return,array('type'=>'bar','color'=>$c[$i],'targetAxisIndex'=>0));
|
||||
array_push($return,array('type'=>'bar','color'=>$c[$i%$j],'targetAxisIndex'=>0));
|
||||
else
|
||||
array_push($return,array('type'=>'line','color'=>$c[$i],'targetAxisIndex'=>1));
|
||||
array_push($return,array('type'=>'line','color'=>$c[$i%$j],'targetAxisIndex'=>1));
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user