From ef2e2c55d1d937ff4dc84fd270214e340ca44d58 Mon Sep 17 00:00:00 2001 From: Kore Nordmann Date: Mon, 21 Jan 2008 12:14:23 +0000 Subject: - Implemented feature #11979: Line width configurable per data set. --- tests/line_test.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tests/line_test.php') diff --git a/tests/line_test.php b/tests/line_test.php index bc15d9f..ed3c719 100644 --- a/tests/line_test.php +++ b/tests/line_test.php @@ -935,6 +935,38 @@ class ezcGraphLineChartTest extends ezcGraphTestCase ); } + public function testLineChartThickLinesPerDataSet() + { + $filename = $this->tempDir . __FUNCTION__ . '.svg'; + + $chart = new ezcGraphLineChart(); + $chart->options->lineThickness = 4; + $chart->data['sample'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 4375, + 'IE' => 345, + 'Opera' => 1204, + 'wget' => 231, + 'Safari' => 987, + ) ); + $chart->data['sample 2'] = new ezcGraphArrayDataSet( array( + 'Mozilla' => 2375, + 'IE' => 145, + 'Opera' => 804, + 'wget' => 131, + 'Safari' => 1287, + ) ); + + $chart->data['sample']->lineThickness = 2; + + $chart->driver = new ezcGraphSvgDriver(); + $chart->render( 500, 200, $filename ); + + $this->compare( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.svg' + ); + } + public function testLineChartThickLines3d() { $filename = $this->tempDir . __FUNCTION__ . '.svg'; -- cgit v1.1