diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2008-01-21 12:14:23 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2008-01-21 12:14:23 +0000 |
commit | ef2e2c55d1d937ff4dc84fd270214e340ca44d58 (patch) | |
tree | e51da726e14dad7de037ed119147201723d2a9be /tests/line_test.php | |
parent | e21b5305beaf266541b443093560c81032600f57 (diff) | |
download | zetacomponents-graph-ef2e2c55d1d937ff4dc84fd270214e340ca44d58.zip zetacomponents-graph-ef2e2c55d1d937ff4dc84fd270214e340ca44d58.tar.gz |
- Implemented feature #11979: Line width configurable per data set.
Diffstat (limited to 'tests/line_test.php')
-rw-r--r-- | tests/line_test.php | 32 |
1 files changed, 32 insertions, 0 deletions
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'; |