public function chart(\core\chart_base $chart, $title) {
        return $this->heading($title, 3) . html_writer::tag('div', $this->render($chart), array('class' => 'graph'));
    }
public function chart(\core\chart_base $chart, $title) {
        return $this->heading($title, 3) . html_writer::tag('div', $this->render($chart), array('class' => 'graph'));
    }
public function chart ( \ core \ chart_base $ chart , $ title ) { return $ this -> heading ( $ title , 3 ) . html_writer :: tag ( 'div' , $ this -> render ( $ chart ) , array ( 'class' => 'graph' ) ) ; }
Outputs a chart.

@param \core\chart_base $chart The chart.
@param string $title The title to display above the graph.
@return string HTML fragment for the graph.
Outputs a chart .