diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-06-27 09:18:13 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-06-27 09:18:13 +0000 |
commit | d6bae028524a0fc548080d7b8ae1d8fa38102248 (patch) | |
tree | df0afe090b02444f05cc092aa53cd9b433e22c49 /tests/font_test.php | |
parent | 50e3d65302d7515cee6b2a677d16bc59d4cf4c8a (diff) | |
download | zetacomponents-graph-d6bae028524a0fc548080d7b8ae1d8fa38102248.zip zetacomponents-graph-d6bae028524a0fc548080d7b8ae1d8fa38102248.tar.gz |
- Applied API change for accessing datasets to be able to distinguish easier
between chart elements and datasets
# Changes the way datasets are accessed for charts
# Old:
# $chart->dataset = array( ... );
# New:
# $chart['dataset'] = array( ... );
Diffstat (limited to 'tests/font_test.php')
-rw-r--r-- | tests/font_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/font_test.php b/tests/font_test.php index 7a362ad..8d6795c 100644 --- a/tests/font_test.php +++ b/tests/font_test.php @@ -117,7 +117,7 @@ class ezcGraphFontTest extends ezcTestCase public function testSetFontForElementWithRendering() { $chart = ezcGraph::create( 'Line' ); - $chart->sampleData = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1); + $chart['sampleData'] = array( 'sample 1' => 234, 'sample 2' => 21, 'sample 3' => 324, 'sample 4' => 120, 'sample 5' => 1); $chart->options->font = $this->basePath . 'font.ttf'; $chart->legend->font = $this->basePath . 'font2.ttf'; $chart->render( 500, 200 ); |