summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-04 11:31:05 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-04 11:31:05 +0000
commit1e353d95ac3c8902d7103e35db48297de0513e33 (patch)
tree1c276f0244119ee60724fcf21b1a1128559f55a2 /tests/renderer_2d_test.php
parentc0dfbdafffe674ac712c25c8a50ebdd1a56a1ae1 (diff)
downloadzetacomponents-graph-1e353d95ac3c8902d7103e35db48297de0513e33.zip
zetacomponents-graph-1e353d95ac3c8902d7103e35db48297de0513e33.tar.gz
- Made pie chart symbol color independent from font color
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 80d0162..3be2cb2 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -1787,6 +1787,32 @@ class ezcGraphRenderer2dTest extends ezcTestCase
);
}
+ public function testRenderLabeledPieSegmentWithModifiedSymbolColor()
+ {
+ $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['Safari'] = true;
+
+ $chart->renderer->options->pieChartSymbolColor = '#000000BB';
+
+ $chart->driver = new ezcGraphSvgDriver();
+ $chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testRenderPieChartWithShadow()
{
$filename = $this->tempDir . __FUNCTION__ . '.svg';
OpenPOWER on IntegriCloud