Hi,
case: stacked graph with filled regions:
I found the color of the small square of the legend did not match the filled region.
before:

after:

patch:
case: stacked graph with filled regions:
I found the color of the small square of the legend did not match the filled region.
before:

after:

patch:
--- /tmp/chart.inc.php.old Wed May 6 17:20:50 2009
+++ include/classes/chart.inc.php Wed May 6 17:20:39 2009
@@ -338,7 +338,7 @@
$color = $this->GetColor('HistoryMinMax');
}
else{
- $color = $this->GetColor($this->items[$i]['color']);
+ $color = $this->GetColor($this->items[$i]['color'], GRAPH_STACKED_ALFA);
switch($this->items[$i]['calc_fnc']){
case CALC_FNC_MIN: $fnc_name = 'min'; break;
case CALC_FNC_MAX: $fnc_name = 'max'; break;
+++ include/classes/chart.inc.php Wed May 6 17:20:39 2009
@@ -338,7 +338,7 @@
$color = $this->GetColor('HistoryMinMax');
}
else{
- $color = $this->GetColor($this->items[$i]['color']);
+ $color = $this->GetColor($this->items[$i]['color'], GRAPH_STACKED_ALFA);
switch($this->items[$i]['calc_fnc']){
case CALC_FNC_MIN: $fnc_name = 'min'; break;
case CALC_FNC_MAX: $fnc_name = 'max'; break;
Comment