function FrxSVGGraph::renderChart in Forena Reports 6.2
Same name and namespace in other branches
- 7.2 plugins/FrxSVGGraph.inc \FrxSVGGraph::renderChart()
- 7.3 renderers/FrxSVGGraph.inc \FrxSVGGraph::renderChart()
- 7.4 renderers/FrxSVGGraph.inc \FrxSVGGraph::renderChart()
File
- plugins/
FrxSVGGraph.inc, line 12
Class
Code
function renderChart($type, $data, $options, $links) {
$this->links = $links;
if ($data) {
switch ($type) {
case 'bargraph':
$output = $this
->barGraph($data[0], $options);
break;
case 'piechart':
$output = $this
->pieChart($data[0], $options);
break;
case 'stackedbargraph':
$output = $this
->stackedBarGraph($data, $options);
break;
case 'groupedbargraph':
$output = $this
->groupedBarGraph($data, $options);
break;
case 'linegraph':
$output = $this
->lineGraph($data[0], $options);
break;
case 'multilinegraph':
$output = $this
->multiLineGraph($data, $options);
break;
case 'scatterplot':
$output = $this
->scatterPlot($data, $options);
break;
case 'multiscatterplot':
$output = $this
->multiScatterPlot($data, $options);
break;
}
}
return $output;
}