diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-05-23 16:18:27 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-05-23 16:18:27 +0000 |
commit | a5476184b65f07f983d9f676d74550bcfe1925d6 (patch) | |
tree | 26986aca1e727fee06a1fe375ee4312669fc6f22 /tests/labeled_axis_test.php | |
parent | fd76465a079bf1a8b4b85e6f80431fcae81919f9 (diff) | |
download | zetacomponents-graph-a5476184b65f07f983d9f676d74550bcfe1925d6.zip zetacomponents-graph-a5476184b65f07f983d9f676d74550bcfe1925d6.tar.gz |
- Implemented tests for line chart legend rendering
- Implemented legend rendering
Diffstat (limited to 'tests/labeled_axis_test.php')
-rw-r--r-- | tests/labeled_axis_test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/labeled_axis_test.php b/tests/labeled_axis_test.php index 2f9c9c2..d7c757c 100644 --- a/tests/labeled_axis_test.php +++ b/tests/labeled_axis_test.php @@ -56,6 +56,7 @@ class ezcGraphLabeledAxisTest extends ezcTestCase { $chart = ezcGraph::create( 'Line' ); $chart->sample = array( 2000 => 20, 70, 12, 130 ); + $chart->sample->color = '#FF0000'; $chart->render( 500, 200 ); } catch ( Exception $e ) @@ -80,7 +81,9 @@ class ezcGraphLabeledAxisTest extends ezcTestCase { $chart = ezcGraph::create( 'Line' ); $chart->sample = array( 2000 => 1045, 1300, 1012, 1450 ); + $chart->sample->color = '#FF0000'; $chart->sample2 = array( 2002 => 1270, 1170, 1610, 1370 ); + $chart->sample2->color = '#00FF00'; $chart->render( 500, 200 ); } catch ( Exception $e ) @@ -107,7 +110,9 @@ class ezcGraphLabeledAxisTest extends ezcTestCase { $chart = ezcGraph::create( 'Line' ); $chart->sample = array( 2000 => 1045, 2001 => 1300, 2004 => 1012, 2006 => 1450 ); + $chart->sample->color = '#FF0000'; $chart->sample2 = array( 2001 => 1270, 1170, 1610, 1370, 1559 ); + $chart->sample2->color = '#00FF00'; $chart->render( 500, 200 ); } catch ( Exception $e ) |