diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-05-25 09:17:11 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-05-25 09:17:11 +0000 |
commit | f17590aed8790e6142b7d5b1c345068abe8f3ebc (patch) | |
tree | dd22a6400feff4588eb4e496a1a3d95f684a7ff0 /tests/renderer_3d_test.php | |
parent | aa49d9ec7aaa79cc42043224386ffc30bf7c7b0f (diff) | |
download | zetacomponents-graph-f17590aed8790e6142b7d5b1c345068abe8f3ebc.zip zetacomponents-graph-f17590aed8790e6142b7d5b1c345068abe8f3ebc.tar.gz |
- Fixed issue #10848: Missing pie segment labels in pie charts with 3d
renderer
Diffstat (limited to 'tests/renderer_3d_test.php')
-rw-r--r-- | tests/renderer_3d_test.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/renderer_3d_test.php b/tests/renderer_3d_test.php index 63fa015..0d2464b 100644 --- a/tests/renderer_3d_test.php +++ b/tests/renderer_3d_test.php @@ -1670,5 +1670,22 @@ class ezcGraphRenderer3dTest extends ezcGraphTestCase $this->fail( 'Expected ezcBaseValueException.' ); } + + public function testRenderer3dPieChartMissingLabels() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphPieChart(); + $chart->data['TestCase'] = new ezcGraphArrayDataSet( array( 'Big' => 2.9, 'Small 1' => 0.03, 'Small 2' => 0.04, 'Small 3' => 0.03, 'Last' => 1 ) ); + + $chart->renderer = new ezcGraphRenderer3d(); + $chart->renderer->options->dataBorder = false; + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } } ?> |