Exemplo n.º 1
0
 public function getGoogleChartUrl()
 {
     $c = KChartGoogle::getInstance(KChartGoogle::PIE);
     $data = $this->getStats();
     $count = array();
     $names = array();
     foreach ($data as $stat) {
         $count[] = $stat->total;
         $names[] = $stat->name;
     }
     $color = new NookuConfigColor();
     //unset red
     $color->set('red', null);
     $color->setPrefix('');
     $c->addData($count)->setValueLabels($names)->setColors($color->getSet());
     return $c->getUrl();
 }