From beedcee208a9d53a28c0b75e62fa97c0fa1b2db4 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Mon, 21 Jan 2008 12:17:39 +0000 Subject: - Implemented feature #12382: Enhance line chart to allow invisible lines. --- tests/line_test.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/line_test.php') 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'; -- cgit v1.1