summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-08-01 08:56:03 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-08-01 08:56:03 +0000
commitf7424deb85d8e47e2f0023ce095e3fff388669d4 (patch)
tree3463596db10ac580874131d95a31d8e14f5c9d62 /tests/renderer_2d_test.php
parent52afada0966e2e62a938316d2c0cb100fa497e89 (diff)
downloadzetacomponents-graph-f7424deb85d8e47e2f0023ce095e3fff388669d4.zip
zetacomponents-graph-f7424deb85d8e47e2f0023ce095e3fff388669d4.tar.gz
- Fixed bug #11107: Floating point inaccuracies caused missing grid in line
chart
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 8a15f78..bf66db6 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -2047,6 +2047,26 @@ class ezcGraphRenderer2dTest extends ezcGraphTestCase
);
}
+ public function testBug11107_MissingGridWithBottomLegend()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $graph = new ezcGraphLineChart();
+ $graph->palette = new ezcGraphPaletteBlack();
+ $graph->legend->position = ezcGraph::BOTTOM;
+
+ $graph->data['sample'] = new ezcGraphArrayDataSet(
+ array( 1, 4, 6, 8, 2 )
+ );
+
+ $graph->render( 560, 250, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testRendererOptionsPropertyMaxLabelHeight()
{
$options = new ezcGraphRendererOptions();
OpenPOWER on IntegriCloud