function chart_color_schemes in Google Chart Tools: Image Charts 7
Get the available color schemes.
See also
hook_chart_color_schemes_alter()
2 calls to chart_color_schemes()
- chart_unique_color in ./
chart.module - Supplies a unique color.
- chart_views_plugin_style_chart::options_form in chart_views/
views/ chart_views_plugin_style_chart.inc - Provide a form to edit options for this plugin.
File
- ./
chart.module, line 876 - Provides primary Drupal hook implementations.
Code
function chart_color_schemes() {
$schemes =& drupal_static(__FUNCTION__);
if (!$schemes) {
// Allow modules to define color schemes.
$schemes = module_invoke_all('chart_color_schemes');
// Provide the default color scheme.
$schemes['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',
);
// Allow modules to alter color schemes.
drupal_alter('chart_color_schemes', $schemes);
}
return $schemes;
}