Fixing style errors.
This commit is contained in:
parent
ecd642e465
commit
38e03778dc
@ -1142,7 +1142,6 @@ class DolGraph
|
|||||||
$this->stringtoshow .= 'scales: { xAxes: [{ ';
|
$this->stringtoshow .= 'scales: { xAxes: [{ ';
|
||||||
if ($isfunnel) {
|
if ($isfunnel) {
|
||||||
$this->stringtoshow .= ' ticks: { beginAtZero: true}, display: false,';
|
$this->stringtoshow .= ' ticks: { beginAtZero: true}, display: false,';
|
||||||
|
|
||||||
}
|
}
|
||||||
//$this->stringtoshow .= 'type: \'time\', '; // Need Moment.js
|
//$this->stringtoshow .= 'type: \'time\', '; // Need Moment.js
|
||||||
$this->stringtoshow .= 'distribution: \'linear\'';
|
$this->stringtoshow .= 'distribution: \'linear\'';
|
||||||
@ -1271,17 +1270,16 @@ class DolGraph
|
|||||||
if ($isfunnel){
|
if ($isfunnel){
|
||||||
$this->stringtoshow .= 'borderWidth: \'2\', ';
|
$this->stringtoshow .= 'borderWidth: \'2\', ';
|
||||||
}
|
}
|
||||||
else if ($type == 'bar' || $type == 'horizontalBar') {
|
elseif ($type == 'bar' || $type == 'horizontalBar') {
|
||||||
$this->stringtoshow .= 'borderWidth: \'1\', ';
|
$this->stringtoshow .= 'borderWidth: \'1\', ';
|
||||||
}
|
}
|
||||||
$this->stringtoshow .= 'borderColor: \'' . $bordercolor . '\', ';
|
$this->stringtoshow .= 'borderColor: \'' . $bordercolor . '\', ';
|
||||||
$this->stringtoshow .= 'backgroundColor: \'' . $color . '\', ';
|
$this->stringtoshow .= 'backgroundColor: \'' . $color . '\', ';
|
||||||
if ($arrayofgroupslegend[$i]) $this->stringtoshow .= 'stack: \'' . $arrayofgroupslegend[$i]['stacknum'] . '\', ';
|
if ($arrayofgroupslegend[$i]) $this->stringtoshow .= 'stack: \'' . $arrayofgroupslegend[$i]['stacknum'] . '\', ';
|
||||||
$this->stringtoshow .='data: [';
|
$this->stringtoshow .='data: [';
|
||||||
if($isfunnel){
|
if ($isfunnel){
|
||||||
$this->stringtoshow .= '['.-$serie[$i].','.$serie[$i].']';
|
$this->stringtoshow .= '['.-$serie[$i].','.$serie[$i].']';
|
||||||
|
}else {
|
||||||
}else{
|
|
||||||
$this->stringtoshow .= $serie[$i];
|
$this->stringtoshow .= $serie[$i];
|
||||||
}
|
}
|
||||||
$this->stringtoshow .=']';
|
$this->stringtoshow .=']';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user