summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-04 11:06:19 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-04 11:06:19 +0000
commitc0dfbdafffe674ac712c25c8a50ebdd1a56a1ae1 (patch)
tree6235c852b23fae17952d0e7a3db33790e7267ae7 /tests/renderer_2d_test.php
parent34c518b4926c2eef8b4e9d7547285a3baa82aa97 (diff)
downloadzetacomponents-graph-c0dfbdafffe674ac712c25c8a50ebdd1a56a1ae1.zip
zetacomponents-graph-c0dfbdafffe674ac712c25c8a50ebdd1a56a1ae1.tar.gz
- Added gleam to 2d pie charts
- Added gleam border to reduce size of gleam
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 6849525..80d0162 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -1812,6 +1812,34 @@ class ezcGraphRenderer2dTest extends ezcTestCase
);
}
+ public function testRenderPieChartWithGleamAndShadow()
+ {
+ $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->legendSymbolGleam = .5;
+ $chart->renderer->options->pieChartShadowSize = 5;
+ $chart->renderer->options->pieChartGleamBorder = 3;
+ $chart->renderer->options->pieChartGleam = .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