Update dolgraph.class.php
This commit is contained in:
parent
f1a9daf77e
commit
2c810988a6
@ -1124,7 +1124,20 @@ class DolGraph
|
|||||||
$this->stringtoshow .= '</script>'."\n";
|
$this->stringtoshow .= '</script>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Output HTML string to total value
|
||||||
|
*
|
||||||
|
* @return string HTML string to total value
|
||||||
|
*/
|
||||||
|
public function total()
|
||||||
|
{
|
||||||
|
$value = 0;
|
||||||
|
foreach($this->data as $valarray) // Loop on each x
|
||||||
|
{
|
||||||
|
$value += $valarray[1];
|
||||||
|
}
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output HTML string to show graph
|
* Output HTML string to show graph
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user