You are here

function _chart_series_attributes in Charts 6

Same name and namespace in other branches
  1. 7 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 80
@author Bruno Massa http://drupal.org/user/67164

Code

function _chart_series_attributes(&$data, &$value, &$settings) {
  foreach ($settings['#series_attributes'] as $attribute) {
    $data[$attribute] = $settings[$attribute][$value];
  }
}