summaryrefslogtreecommitdiffstats
path: root/src/charts/bar.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-09-20 15:12:20 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-09-20 15:12:20 +0000
commit9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7 (patch)
treea5b7b9bdd5be0ffcbf3456fdb0c6c681d3de2c14 /src/charts/bar.php
parent3fe622918bd1c3e2694ecb2c7d244b9c33eb5693 (diff)
downloadzetacomponents-graph-9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7.zip
zetacomponents-graph-9d8baefbdf52a83adfb2efed5ebe4bd7b7f765a7.tar.gz
- Added and improved documentation
Diffstat (limited to 'src/charts/bar.php')
-rw-r--r--src/charts/bar.php30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/charts/bar.php b/src/charts/bar.php
index b20901b..dc183d1 100644
--- a/src/charts/bar.php
+++ b/src/charts/bar.php
@@ -1,6 +1,6 @@
<?php
/**
- * File containing the abstract ezcGraphBarChart class
+ * File containing the ezcGraphBarChart class
*
* @package Graph
* @version //autogentag//
@@ -8,7 +8,33 @@
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
- * Class to represent a line chart.
+ * Class for bar charts. Can make use of an unlimited amount of datasets and
+ * will display them as bars by default.
+ * X axis:
+ * - Labeled axis
+ * - Boxed axis label renderer
+ * Y axis:
+ * - Numeric axis
+ * - Exact axis label renderer
+ *
+ * <code>
+ * // Create a new line chart
+ * $chart = new ezcGraphBarChart();
+ *
+ * // Add data to line chart
+ * $chart->data['sample dataset'] = new ezcGraphArrayDataSet(
+ * array(
+ * '100' => 1.2,
+ * '200' => 43.2,
+ * '300' => -34.14,
+ * '350' => 65,
+ * '400' => 123,
+ * )
+ * );
+ *
+ * // Render chart with default 2d renderer and default SVG driver
+ * $chart->render( 500, 200, 'bar_chart.svg' );
+ * </code>
*
* @package Graph
*/
OpenPOWER on IntegriCloud