You are here

function FrxSVGGraph::barGraph in Forena Reports 7.2

Same name and namespace in other branches
  1. 6.2 plugins/FrxSVGGraph.inc \FrxSVGGraph::barGraph()
1 call to FrxSVGGraph::barGraph()
FrxSVGGraph::renderChart in plugins/FrxSVGGraph.inc

File

plugins/FrxSVGGraph.inc, line 46

Class

FrxSVGGraph

Code

function barGraph($data, $options) {
  if (@$options['style'] == '3D') {
    $type = 'Bar3DGraph';
  }
  elseif (@$options['style'] == 'horizontal') {
    $type = 'HorizontalBarGraph';
  }
  else {
    $type = 'BarGraph';
  }
  return $this
    ->renderGraph($type, $options, $data);
}