function _fusioncharts_chart in Charts 7
Convert all Chart-level data.
Parameters
&$chart: Array. The array that will be converted into a string for FusionCharts
&$data: Array. The raw data.
Return value
String. The string presentation of series data
1 call to _fusioncharts_chart()
- _fusioncharts_charts_render in fusioncharts/
fusioncharts.inc - Implementation of hook_charts_render().
File
- fusioncharts/
fusioncharts.inc, line 70 - @author Bruno Massa http://drupal.org/user/67164
Code
function _fusioncharts_chart(&$chart, &$data) {
$chart['attributes']['bgColor'] = $data['#color']['background'];
if (isset($data['#title'])) {
$chart['attributes']['caption'] = $data['#title'];
}
$chart['attributes']['animation'] = '0';
}