function _openflashchart_charts_render in Charts 7
Implementation of hook_charts_render().
Its a Charts module hook. It transform the data into a HTML chart.
Parameters
&$data: Array. The
1 string reference to '_openflashchart_charts_render'
- openflashchart_charts_info in openflashchart/
openflashchart.hooks.inc - Implementation of hook_charts_info().
File
- openflashchart/
openflashchart.inc, line 31 - @author Bruno Massa http://drupal.org/user/67164
Code
function _openflashchart_charts_render(&$data) {
$chart = new open_flash_chart_api();
if ($error = _openflashchart_chart($chart, $data)) {
return $error;
}
if ($error = _openflashchart_series($chart, $data)) {
return $error;
}
return $chart
->render();
}