/** * Create a Google Chart chart */ protected function GoogleChart() { $chart = new GoogleChart(null, $this->type); # Loop through every set data //foreach($this->data as $set) //{ $values = @implode(',', $this->data); $labels = @implode('|', $this->labels); $chart->loadData($values); $chart->setLabels($labels, 'bottom'); //} $chart->dimensions = $this->x . 'x' . $this->y; return $chart->draw(false); }