From c0dfbdafffe674ac712c25c8a50ebdd1a56a1ae1 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Wed, 4 Oct 2006 11:06:19 +0000 Subject: - Added gleam to 2d pie charts - Added gleam border to reduce size of gleam --- tests/renderer_2d_test.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tests/renderer_2d_test.php') 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'; -- cgit v1.1