Closed (won't fix)
Project:
Charts
Version:
6.x-1.0-alpha6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Aug 2009 at 02:27 UTC
Updated:
26 Jul 2013 at 01:00 UTC
In plugin Open Flash Chart don't work:
Charts
#color: the RRGGBB schema for colors, just like CSS
Series
#color: the RRGGBB schema for colors, just like CSS
Values
#color: the RRGGBB schema for colors, just like CSS
Example:
$data = array(
'#color' => 'f0f0f0',
array(
'#color' => '666666',
array('#value' => 60, '#label' => t('60%'), '#color' => '000000'),
array('#value' => 25, '#label' => t('25%'), '#color' => '333333'),
array('#value' => 10, '#label' => t('10%'), '#color' => '666666'),
array('#value' => 5, '#label' => t('5%'), '#color' => '999999'),
),
);
return charts_chart($data);
Comments
Comment #1
hop commentedIn type: line2D
Comment #2
hop commentedIn file openflashchart.inc correct:
$chart->set_bg_colour($data['#color']['#background']);
to
$chart->set_bg_colour($data['#color']);
Thanks
Comment #3
Openlogic commentedThis modification to the module code appears to break (at least) the system charts module.
A better solution appears to be to change the way the client module code sets background color.
So the above code would end up looking like this:
Comment #4
brandon.dixon commentedI would have to agree with Openlogic on this one. Although that code above really did nothing for the background. To actually change the background you need to include:
In the actual core array, so the example would look like:
Comment #5
quicksketchThe 6.x-1.x version of the module is no longer being updated.