29        return join(
'|', 
$axis);
 
   39        return 'e:' . join(
',', $setstr);
 
   44        $extended_table = 
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-.';
 
   47        $size = (strlen($extended_table));
 
   49        foreach ($values as $k => $v) {
 
   50            if ($v >= 0 && $v <= 100) {
 
   51                $first = substr($extended_table, intval(($delta * $v / 100) / 
$size), 1);
 
   52                $second = substr($extended_table, intval(($delta * $v / 100) % 
$size), 1);
 
   53                $chardata .= 
"$first$second";
 
   70        $colors = array(
'eeeeee', 
'cccccc', 
'aaaaaa', 
'99eecc');
 
   73        for (
$i = 0; 
$i < $num; 
$i++) {
 
   74            $colstr[] = 
'b' . 
',' . $colors[
$i] . 
',' . (
$i) . 
',' . (
$i+1) . 
',0';
 
   76        return '&chm=' . join(
'|', $colstr);
 
   91        $labeld = 
'&chxt=x,y' . 
'&chxr=0,0,1|1,0,' . 
$maxes[0];
 
   94                throw new Exception(
'Incorrect number of max calculations for graph plotting.');
 
   96            $labeld = 
'&chxt=x,y,r' . 
'&chxr=0,0,1|1,0,' . 
$maxes[0] . 
'|2,0,' . 
$maxes[1];
 
   99        $url = 
'https://chart.apis.google.com/chart?' .
 
  101            'chs=' . $this->x . 
'x' . $this->y . 
 
  107            '&chco=ff5c00,cca600' . 
 
  108            '&chls=1,1,0|1,6,3' .
 
  114            '&chxp=0,' . join(
',', $axispos) .
 
  115            '&chg=' . (2400/(count(
$datasets[0])-1)) . 
',-1,3,3';   
 
  122        $url = 
'https://chart.apis.google.com/chart?' .
 
  125        'chs=' . $this->x . 
'x' . $this->y . 
 
  154    public static function roof($max)
 
  162        $t = intval(ceil($max));
 
  169        $candidates = array(1, 2, 5, 10, 20, 25, 50, 100);
 
  171        foreach ($candidates as $c) {
 
  172            if (
$t / $c < $maxGridLines) {
 
  174                $target_top = intval(ceil($max / $tick_y) * $tick_y);
 
An exception for terminatinating execution or to throw for unit testing.
static roof($max)
Takes a input value, and generates a value that suits better as a max value on the Y-axis.
showPie($axis, $datasets)
__construct($x=800, $y=350)
Constructor.
getFillArea($datasets)
Return colors between multiple graphs...
static extEncode($values)
show($axis, $axispos, $datasets, $maxes)
Generate a Google Charts URL which points to a generated image.