summaryrefslogtreecommitdiffstats
path: root/src/charts/radar.php
diff options
context:
space:
mode:
authorTimothy Pearson <tpearson@raptorengineeringinc.com>2015-12-12 20:31:50 -0600
committerTimothy Pearson <tpearson@raptorengineeringinc.com>2016-01-11 02:09:02 -0600
commit63fc2a61d44e2ea95ebab72f88ca44a6416d6979 (patch)
tree3c7614c61c9e1aa8312ce50578506ecd28c02151 /src/charts/radar.php
parent551ab952471befef109c76177ebc0ffa76dbed5e (diff)
downloadzetacomponents-graph-fill-color-separation.zip
zetacomponents-graph-fill-color-separation.tar.gz
Add option to only render specific datasets with fill color as opposed to all datasetsfill-color-separation
Diffstat (limited to 'src/charts/radar.php')
-rw-r--r--src/charts/radar.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/charts/radar.php b/src/charts/radar.php
index 23bcc3a..b7bd820 100644
--- a/src/charts/radar.php
+++ b/src/charts/radar.php
@@ -300,7 +300,12 @@ class ezcGraphRadarChart extends ezcGraphChart
{
--$nr;
// 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