summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-11-18 10:21:18 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-11-18 10:21:18 +0000
commitf0f525723cef5690750dc5293a669eb107356145 (patch)
tree76d317b42a971098e6aa6e7eee8772e947c6593c
parent9196245ed75c735660e8e8e935f09121ee6f456e (diff)
downloadzetacomponents-graph-f0f525723cef5690750dc5293a669eb107356145.zip
zetacomponents-graph-f0f525723cef5690750dc5293a669eb107356145.tar.gz
- Better documentation for getElementReferences()
-rw-r--r--src/interfaces/renderer.php40
1 files changed, 39 insertions, 1 deletions
diff --git a/src/interfaces/renderer.php b/src/interfaces/renderer.php
index 33c8bb1..55c0ceb 100644
--- a/src/interfaces/renderer.php
+++ b/src/interfaces/renderer.php
@@ -72,7 +72,45 @@ abstract class ezcGraphRenderer
/**
* Return all chart element references
*
- * @return array chart element references
+ * Returns element references for the data sets in the chart, so the
+ * created graphic may be enhanced later.
+ *
+ * The resulting array looks like:
+ * <code>
+ * array (
+ * legend_url => array (
+ * $name => $url | null,
+ * ...
+ * ),
+ * legend => array (
+ * $name => $data,
+ * ...
+ * )
+ * data => array (
+ * $dataset => array (
+ * $name => $data,
+ * ...
+ * ),
+ * ...
+ * )
+ * )
+ * </code>
+ *
+ * The legend elements won't show up in the array, if there is no legend
+ * redered. The URLs are only available, if the url property has been set
+ * on the respective dataset.
+ *
+ * The data assigned to the legends and data elements is completely direver
+ * dependent. In the SVG and Flash driver there will jsut be some IDs,
+ * which allow you to reference the affected elements or element groups
+ * inside the flash or SVG file.
+ *
+ * For bitmap formats, like in the Cairo or GD driver, $data will be an
+ * array of ezcGraphCoordinate objects, which roughly describe the outline
+ * of the referenced element. For circles and alike the resolution of this
+ * outline can be configured in the respective driver.
+ *
+ * @return array
*/
public function getElementReferences()
{
OpenPOWER on IntegriCloud