summaryrefslogtreecommitdiffstats
path: root/src/charts/bar.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-15 15:18:17 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-15 15:18:17 +0000
commit875bf32ec32cb28134914294a48d101b7a4810b5 (patch)
tree4360ba0ef2f838f72c23be0652048de8bda3842a /src/charts/bar.php
parent440bcae05b756a4167df690a48b2b77817d6a39a (diff)
downloadzetacomponents-graph-875bf32ec32cb28134914294a48d101b7a4810b5.zip
zetacomponents-graph-875bf32ec32cb28134914294a48d101b7a4810b5.tar.gz
- Added ezcGraphBarChart which inherits from ezcGraphLineChart and changes the
defaultDisplayType and the default axisLabelRenderer for the x axis
Diffstat (limited to 'src/charts/bar.php')
-rw-r--r--src/charts/bar.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/charts/bar.php b/src/charts/bar.php
new file mode 100644
index 0000000..def5397
--- /dev/null
+++ b/src/charts/bar.php
@@ -0,0 +1,35 @@
+<?php
+/**
+ * File containing the abstract ezcGraphBarChart class
+ *
+ * @package Graph
+ * @version //autogentag//
+ * @copyright Copyright (C) 2005, 2006 eZ systems as. All rights reserved.
+ * @license http://ez.no/licenses/new_bsd New BSD License
+ */
+/**
+ * Class to represent a line chart.
+ *
+ * @package Graph
+ */
+class ezcGraphBarChart extends ezcGraphLineChart
+{
+
+ public function __construct( array $options = array() )
+ {
+ parent::__construct();
+
+ $this->elements['xAxis']->axisLabelRenderer = new ezcGraphAxisBoxedLabelRenderer();
+ }
+
+ /**
+ * Returns the default display type of the current chart type.
+ *
+ * @return int Display type
+ */
+ public function getDefaultDisplayType()
+ {
+ return ezcGraph::BAR;
+ }
+}
+?>
OpenPOWER on IntegriCloud