original_string: public function chart(\core\chart_base $chart, $title) {
          return $this->heading($title, 3) . html_writer::tag('div', $this->render($chart), array('class' => 'graph'));
      }
code: public function chart(\core\chart_base $chart, $title) {
          return $this->heading($title, 3) . html_writer::tag('div', $this->render($chart), array('class' => 'graph'));
      }
code_tokens: public function chart ( \ core \ chart_base $ chart , $ title ) { return $ this -> heading ( $ title , 3 ) . html_writer :: tag ( 'div' , $ this -> render ( $ chart ) , array ( 'class' => 'graph' ) ) ; }
docstring: 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.
docstring_tokens: Outputs a chart .