diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-08-15 15:18:17 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-08-15 15:18:17 +0000 |
commit | 875bf32ec32cb28134914294a48d101b7a4810b5 (patch) | |
tree | 4360ba0ef2f838f72c23be0652048de8bda3842a /src/charts | |
parent | 440bcae05b756a4167df690a48b2b77817d6a39a (diff) | |
download | zetacomponents-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')
-rw-r--r-- | src/charts/bar.php | 35 |
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; + } +} +?> |