--- charts_openflash.class.inc 2009-10-07 17:51:28.000000000 +0300 +++ my_charts_openflash.class.inc 2009-10-08 14:15:42.000000000 +0300 @@ -109,6 +109,8 @@ function get_data_from_cache($cid=null) */ function _preprocess_values($values) { + $series_colors = ChartsOpenFlash::series_colors(); // Mountbatten: Color patch + $labels = $this->x_axis->labels->labels; $i = 0; @@ -120,6 +122,7 @@ function _preprocess_values($values) { $obj = new stdClass(); $obj->value = $val; $obj->label = $labels[$i]; + $obj->colour = $series_colors[$i]; // Mountbatten: Color patch $arr = array('value'=>$val, 'label'=>$labels[$i]); $new_vals[] = $obj; } @@ -160,7 +163,7 @@ function get_chart() { echo "
".print_r ( $ret,true).""; exit(); **/ - + $swfobj_mod_path = drupal_get_path('module', 'swfobject_api'); $swfobj_js = $swfobj_mod_path . '/swfobject.js'; $expressInst = base_path() . $swfobj_mod_path . '/expressInstall.swf'; @@ -185,5 +188,4 @@ HTML; } - } \ No newline at end of file