summaryrefslogtreecommitdiffstats
path: root/tests/renderer_3d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-05-25 09:17:11 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-05-25 09:17:11 +0000
commitf17590aed8790e6142b7d5b1c345068abe8f3ebc (patch)
treedd22a6400feff4588eb4e496a1a3d95f684a7ff0 /tests/renderer_3d_test.php
parentaa49d9ec7aaa79cc42043224386ffc30bf7c7b0f (diff)
downloadzetacomponents-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.php17
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'
+ );
+ }
}
?>
OpenPOWER on IntegriCloud