diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-05-17 11:20:47 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-05-17 11:20:47 +0000 |
commit | 3ed40a4c2cf646edd4adb964b8a2f3224ae37263 (patch) | |
tree | fcb19f1fab26ba0b6d05e39e6087f643ea47feb1 /src/charts/pie.php | |
parent | f266eff60c9b9350f32d6c60dcd9cd6d6bec6630 (diff) | |
download | zetacomponents-graph-3ed40a4c2cf646edd4adb964b8a2f3224ae37263.zip zetacomponents-graph-3ed40a4c2cf646edd4adb964b8a2f3224ae37263.tar.gz |
- Added tests and implementation for legend generation
Diffstat (limited to 'src/charts/pie.php')
-rw-r--r-- | src/charts/pie.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/charts/pie.php b/src/charts/pie.php index 084a84b..a803104 100644 --- a/src/charts/pie.php +++ b/src/charts/pie.php @@ -37,7 +37,7 @@ class ezcGraphPieChart extends ezcGraphChart } /** - * Render a line chart + * Render a pie chart * * @param ezcGraphRenderer $renderer * @access public @@ -45,7 +45,8 @@ class ezcGraphPieChart extends ezcGraphChart */ public function render() { - + // Generate legend + $this->elements['legend']->generateFromDataset( reset( $this->data ) ); } } |