summaryrefslogtreecommitdiffstats
path: root/src/charts/line.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/line.php')
-rw-r--r--src/charts/line.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/charts/line.php b/src/charts/line.php
index 2225de6..0bfa7f7 100644
--- a/src/charts/line.php
+++ b/src/charts/line.php
@@ -276,7 +276,12 @@ class ezcGraphLineChart extends ezcGraphChart
$yAxis = ( $data->yAxis->default ? $data->yAxis->default: $this->elements['yAxis'] );
// Determine fill color for dataset
- if ( $this->options->fillLines !== false )
+ if ( $data->fillLine !== false )
+ {
+ $fillColor = clone $data->color->default;
+ $fillColor->alpha = (int) round( ( 255 - $fillColor->alpha ) * ( $data->fillLine / 255 ) );
+ }
+ else if ( $this->options->fillLines !== false )
{
$fillColor = clone $data->color->default;
$fillColor->alpha = (int) round( ( 255 - $fillColor->alpha ) * ( $this->options->fillLines / 255 ) );
OpenPOWER on IntegriCloud