Use transparent color for negative color in chart part
This commit is contained in:
parent
a48b738c18
commit
d608e3b26b
@ -1211,7 +1211,7 @@ class DolGraph
|
|||||||
$tmp = str_replace('#', '', $this->datacolor[$i]);
|
$tmp = str_replace('#', '', $this->datacolor[$i]);
|
||||||
if (strpos($tmp, '-') !== false) {
|
if (strpos($tmp, '-') !== false) {
|
||||||
$foundnegativecolor++;
|
$foundnegativecolor++;
|
||||||
$color = '#FFFFFF'; // If $val is '-123'
|
$color = 'rgba(0,0,0,.0)'; // If $val is '-123'
|
||||||
} else {
|
} else {
|
||||||
$color = "#" . $tmp; // If $val is '123' or '#123'
|
$color = "#" . $tmp; // If $val is '123' or '#123'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user