summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-12 12:10:38 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-12 12:10:38 +0000
commita5d1b634ae6a69a57391695f020f3c7a742a24ac (patch)
tree7cb896c30e563e2f827483c15b64b16b217b8eb5 /tests/renderer_2d_test.php
parent77b4b86c60511c336dd5d8425fa537fbedc2dac5 (diff)
downloadzetacomponents-graph-a5d1b634ae6a69a57391695f020f3c7a742a24ac.zip
zetacomponents-graph-a5d1b634ae6a69a57391695f020f3c7a742a24ac.tar.gz
- Added shadow for pie charts in 2d renderer
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 8ecd380..c62c045 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -1795,6 +1795,31 @@ class ezcGraphRenderer2dTest extends ezcTestCase
);
}
+ public function testRenderPieChartWithShadow()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphPieChart();
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array(
+ 'Mozilla' => 4375,
+ 'IE' => 345,
+ 'Opera' => 1204,
+ 'wget' => 231,
+ 'Safari' => 987,
+ ) );
+
+ $chart->data['sample']->highlight['Opera'] = true;
+ $chart->renderer->options->pieChartShadowSize = 5;
+
+ $chart->driver = new ezcGraphSvgDriver();
+ $chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testRenderLineChartWithAxisLabels()
{
$filename = $this->tempDir . __FUNCTION__ . '.svg';
OpenPOWER on IntegriCloud