You are here

function _charts_examples_pie_data_overrides in Charts 7.2

File

includes/charts.examples.inc, line 98

Code

function _charts_examples_pie_data_overrides() {
  $example = _charts_examples_pie_simple();
  $example['chart']['#title'] = t('Pie data overrides');
  $example['chart']['#tooltips'] = TRUE;
  $example['chart']['pie_data'][0] = array(
    '#type' => 'chart_data_item',
    '#data' => 15,
    '#color' => 'red',
    '#title' => t('Dudes'),
  );
  $example['chart']['pie_data'][1] = array(
    '#type' => 'chart_data_item',
    '#data' => 20,
    '#title' => t('Chicks'),
  );
  $example['notes']['google'] = t('Google cannot assign a color to an individual item. See this <a href="https://code.google.com/p/google-visualization-api-issues/issues/detail?id=1267">feature request</a>.');
  return $example;
}