function _chart_series_attributes in Charts 7
Same name and namespace in other branches
- 6 charts.inc \_chart_series_attributes()
Merge the default series attributes with the actual data.
1 call to _chart_series_attributes()
- _charts_chart in ./
charts.inc - The main Chart API function, that calls any chart provider to print the given data.
File
- ./
charts.inc, line 73 - @author Bruno Massa http://drupal.org/user/67164
Code
function _chart_series_attributes(&$data, &$value, &$settings) {
foreach ($settings['#series_attributes'] as $attribute) {
if (isset($settings[$attribute][$value])) {
$data[$attribute] = $settings[$attribute][$value];
}
}
}