summaryrefslogtreecommitdiffstats
path: root/tests/line_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-01-21 12:17:39 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-01-21 12:17:39 +0000
commitbeedcee208a9d53a28c0b75e62fa97c0fa1b2db4 (patch)
tree341a0cebde6b68324ae09a8174a539577870d547 /tests/line_test.php
parentef2e2c55d1d937ff4dc84fd270214e340ca44d58 (diff)
downloadzetacomponents-graph-beedcee208a9d53a28c0b75e62fa97c0fa1b2db4.zip
zetacomponents-graph-beedcee208a9d53a28c0b75e62fa97c0fa1b2db4.tar.gz
- Implemented feature #12382: Enhance line chart to allow invisible lines.
Diffstat (limited to 'tests/line_test.php')
-rw-r--r--tests/line_test.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/line_test.php b/tests/line_test.php
index ed3c719..a895da3 100644
--- a/tests/line_test.php
+++ b/tests/line_test.php
@@ -1018,6 +1018,31 @@ class ezcGraphLineChartTest extends ezcGraphTestCase
);
}
+ public function testLineChartNoLine()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.svg';
+
+ $chart = new ezcGraphLineChart();
+ $chart->palette = new ezcGraphPaletteBlack();
+ $chart->data['sample'] = new ezcGraphArrayDataSet( array(
+ 'Mozilla' => 4375,
+ 'IE' => 345,
+ 'Opera' => 1204,
+ 'wget' => 231,
+ 'Safari' => 987,
+ ) );
+
+ $chart->options->lineThickness = 0;
+
+ $chart->driver = new ezcGraphSvgDriver();
+ $chart->render( 500, 200, $filename );
+
+ $this->compare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg'
+ );
+ }
+
public function testBarChartDataPointColors()
{
$filename = $this->tempDir . __FUNCTION__ . '.svg';
OpenPOWER on IntegriCloud