You are here

function _chart_color_schemes in Google Chart Tools: Image Charts 5

Same name and namespace in other branches
  1. 6 chart.module \_chart_color_schemes()

Invoke chart_color_schemes(); hook to gather available schemes. When $init is FALSE the color schemes gathered are returned.

2 calls to _chart_color_schemes()
chart_init in ./chart.module
Implementation of hook_init().
chart_unique_color in ./chart.module
Supplies a unique color.

File

./chart.module, line 691
Google Charting API. Developed by Tj Holowaychuk

Code

function _chart_color_schemes($init = FALSE) {
  static $colors;
  $colors['default'] = array(
    'FF8000',
    'FFC080',
    'FFDFBF',
    'FFC080',
    'FFCC00',
    'FFE500',
    'FFF9BF',
    '78c0e9',
    '179ce8',
    '30769e',
    'c8e9fc',
    'ecf8ff',
    '00ccff',
    '4086AA',
    '91C3DC',
    '87907D',
    'AAB6A2',
    '555555',
    '666666',
    '21B6A8',
    '177F75',
    'B6212D',
    '7F171F',
    'B67721',
    '7F5417',
  );
  if ($init === TRUE) {
    foreach (module_implements('chart_color_schemes') as $module) {
      $function = $module . '_chart_color_schemes';
      $function($colors);
    }
  }
  else {
    return $colors;
  }
}