function buildChart(&$rows) { $this->_graphData['xname'] = ts('Period'); $this->_graphData['yname'] = ts("Number of Donors"); foreach ($rows as $index => $row) { $this->_graphData['xlabels'][] = ts(" to ") . $row['to_date']; } parent::buildChart($rows); }