/** * Method to render a statistical chart using built-in image. * * @return false if someting wrong */ function render() { jincimport("graphics.gchart"); jincimport("graphics.gimage"); $chart = new GChart($this->get('legend'), 700, 200); $chart->addLine($this->get('values')); $chart->setXMargin(25); $chart->setYMargin(25); $chart->setGridColor(192, 192, 192); $c = new GImage(750, 250); $c->display($chart); $c->close(); }