summaryrefslogtreecommitdiffstats
path: root/src/element
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-15 09:37:47 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-15 09:37:47 +0000
commit04e2d9db41d47bc0364261a1cb30fe502409c339 (patch)
tree5d67ca1c0433d8521671fcf3364e2f4030f0fdad /src/element
parent58808385c0739092503c32c35e9365335040d5d0 (diff)
downloadzetacomponents-graph-04e2d9db41d47bc0364261a1cb30fe502409c339.zip
zetacomponents-graph-04e2d9db41d47bc0364261a1cb30fe502409c339.tar.gz
- Changed access to datasets from $chart['dataset'] to $chart->data['dataset']
Diffstat (limited to 'src/element')
-rw-r--r--src/element/legend.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/element/legend.php b/src/element/legend.php
index 952bfc1..8f0458c 100644
--- a/src/element/legend.php
+++ b/src/element/legend.php
@@ -117,10 +117,10 @@ class ezcGraphChartElementLegend extends ezcGraphChartElement
* @param array $datasets
* @return void
*/
- public function generateFromDataSets(array $datasets)
+ public function generateFromDataSets( ezcGraphChartDataContainer $datasets )
{
$this->labels = array();
- foreach ($datasets as $dataset)
+ foreach ( $datasets as $dataset )
{
$this->labels[] = array(
'label' => $dataset->label->default,
@@ -138,10 +138,10 @@ class ezcGraphChartElementLegend extends ezcGraphChartElement
* @param ezcGraphDataSet $dataset
* @return void
*/
- public function generateFromDataSet(ezcGraphDataSet $dataset)
+ public function generateFromDataSet( ezcGraphDataSet $dataset )
{
$this->labels = array();
- foreach ($dataset as $label => $data)
+ foreach ( $dataset as $label => $data )
{
$this->labels[] = array(
'label' => $label,
OpenPOWER on IntegriCloud