diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-12-13 11:10:53 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-12-13 11:10:53 +0000 |
commit | ab61c80e08eba3477e8918d3357d37f9d104fc0c (patch) | |
tree | dd71bc6c02aba37257de3001e504b2e41b990777 /tests/renderer_2d_test.php | |
parent | 5c274a550bf732ff5ffaf59db0d4a5f7b86a521e (diff) | |
download | zetacomponents-graph-ab61c80e08eba3477e8918d3357d37f9d104fc0c.zip zetacomponents-graph-ab61c80e08eba3477e8918d3357d37f9d104fc0c.tar.gz |
- Fixed: Bug #9795 (Interferring bars, when bars count is higher then major
step count)
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r-- | tests/renderer_2d_test.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php index 2fb6832..7a88195 100644 --- a/tests/renderer_2d_test.php +++ b/tests/renderer_2d_test.php @@ -1594,6 +1594,27 @@ class ezcGraphRenderer2dTest extends ezcTestCase ); } + public function testRenderBarChartWithMoreBarsThenMajorSteps() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphBarChart(); + $chart->legend = false; + + $chart->xAxis = new ezcGraphChartElementNumericAxis(); + $chart->xAxis->axisLabelRenderer = new ezcGraphAxisBoxedLabelRenderer(); + + $chart->data['dataset'] = new ezcGraphArrayDataSet( array( 12, 43, 324, 12, 43, 125, 120, 123 , 543, 12, 45, 76, 87 , 99, 834, 34, 453 ) ); + $chart->data['dataset']->color = '#3465A47F'; + + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testRenderFilledLineBarChart() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; |