diff options
author | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2015-12-13 00:09:38 -0600 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineeringinc.com> | 2015-12-13 00:09:38 -0600 |
commit | a233c63b7379fe04219b5d666877e71dec3ba9e0 (patch) | |
tree | 3bed8e38d799cffb590a8d605fab6f226f250159 /src/renderer | |
parent | ac2c7e05d104d1dc39ccf5391b13103dab7d251f (diff) | |
download | zetacomponents-graph-a233c63b7379fe04219b5d666877e71dec3ba9e0.zip zetacomponents-graph-a233c63b7379fe04219b5d666877e71dec3ba9e0.tar.gz |
Add option to bound fill between the current dataset and the previous dataset on radar plotsHEADmaster
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/2d.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/renderer/2d.php b/src/renderer/2d.php index 9793e0a..3fd7812 100644 --- a/src/renderer/2d.php +++ b/src/renderer/2d.php @@ -884,6 +884,8 @@ class ezcGraphRenderer2d ezcGraphCoordinate $center, ezcGraphCoordinate $start, ezcGraphCoordinate $end, + ezcGraphCoordinate $fillStart, + ezcGraphCoordinate $fillEnd, $dataNumber = 1, $dataCount = 1, $symbol = ezcGraph::NO_SYMBOL, @@ -905,6 +907,18 @@ class ezcGraphRenderer2d $end->x * 2 * M_PI, $end->y ); + $fillStart = $this->getCoordinateFromAngleAndRadius( + $boundings, + $center, + $fillStart->x * 2 * M_PI, + $fillStart->y + ); + $fillEnd = $this->getCoordinateFromAngleAndRadius( + $boundings, + $center, + $fillEnd->x * 2 * M_PI, + $fillEnd->y + ); // Fill line if ( $fillColor !== null ) @@ -913,10 +927,8 @@ class ezcGraphRenderer2d array( $start, $end, - new ezcGraphCoordinate( - $boundings->x0 + $center->x, - $boundings->y0 + $center->y - ), + $fillStart, + $fillEnd ), $fillColor, true |