summaryrefslogtreecommitdiffstats
path: root/src/charts/bar.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-02-15 13:40:41 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-02-15 13:40:41 +0000
commit33f9c78325f57256073429817d6bc46e8f9fc1e5 (patch)
treefaa185f4ffd6ab28715a7c425b986f255069cc9c /src/charts/bar.php
parentd3c0d8a0f12ae2a9a9252adeb527843171150e99 (diff)
downloadzetacomponents-graph-33f9c78325f57256073429817d6bc46e8f9fc1e5.zip
zetacomponents-graph-33f9c78325f57256073429817d6bc46e8f9fc1e5.tar.gz
- Fixed issue #10055: Improve chart class documentation with chart elements
Diffstat (limited to 'src/charts/bar.php')
-rw-r--r--src/charts/bar.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/charts/bar.php b/src/charts/bar.php
index 045dd75..32ff49c 100644
--- a/src/charts/bar.php
+++ b/src/charts/bar.php
@@ -36,6 +36,22 @@
* $chart->render( 500, 200, 'bar_chart.svg' );
* </code>
*
+ * Each chart consists of several chart elements which represents logical
+ * parts of the chart and can be formatted independently. The bar chart
+ * consists of:
+ * - title ( ezcGraphChartElementText )
+ * - legend ( ezcGraphChartElementLegend )
+ * - background ( ezcGraphChartElementBackground )
+ * - xAxis ( ezcGraphChartElementLabeledAxis )
+ * - yAxis ( ezcGraphChartElementNumericAxis )
+ *
+ * The type of the axis may be changed and all elements can be configured by
+ * accessing them as properties of the chart:
+ *
+ * <code>
+ * $chart->legend->position = ezcGraph::RIGHT;
+ * </code>
+ *
* @package Graph
* @mainclass
*/
OpenPOWER on IntegriCloud