Esempio n. 1
0
 /**
  *	Returns graph id in ObjectFS.
  *
  *	@return int
  **/
 public function createBarPlot(RM_Total_Param $param)
 {
     $graph = M('Plot')->initGraph('graph', M('Total')->configWidth(), M('Total')->configHeight());
     $plot1 = M('Plot')->initPlotByQuery('bar', $this->reportQuery(), $param->getVarname(), NULL, array('xLabelsFunction' => array($this, 'getDetailCaption')));
     $graph->Add($plot1);
     $graph->setTitle($tmp = $this->_object->_collectCaption($param));
     $graph->yaxis->SetLabelFormatCallback(array($param, 'formatLabelCallback'));
     return $this->_mapper->_createGraph($this->_object, $graph);
 }