summaryrefslogtreecommitdiffstats
path: root/src/charts
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-08-18 10:09:06 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-08-18 10:09:06 +0000
commit94953ea4f75810e5e667425bfd55ce8d51672ee3 (patch)
treeb6e34c66f1031c2834c3578a7e80382710c2f362 /src/charts
parente981be4dca177e235f6aa9b597d4a99c0a2cf875 (diff)
downloadzetacomponents-graph-94953ea4f75810e5e667425bfd55ce8d51672ee3.zip
zetacomponents-graph-94953ea4f75810e5e667425bfd55ce8d51672ee3.tar.gz
- Moved properties to properties array
- Fixed bug: Legend title was rendered, even when empty
Diffstat (limited to 'src/charts')
-rw-r--r--src/charts/bar.php7
-rw-r--r--src/charts/line.php12
-rw-r--r--src/charts/pie.php7
3 files changed, 26 insertions, 0 deletions
diff --git a/src/charts/bar.php b/src/charts/bar.php
index def5397..b20901b 100644
--- a/src/charts/bar.php
+++ b/src/charts/bar.php
@@ -15,6 +15,13 @@
class ezcGraphBarChart extends ezcGraphLineChart
{
+ /**
+ * Constructor
+ *
+ * @param array $options Default option array
+ * @return void
+ * @ignore
+ */
public function __construct( array $options = array() )
{
parent::__construct();
diff --git a/src/charts/line.php b/src/charts/line.php
index 60b2e4b..0157be7 100644
--- a/src/charts/line.php
+++ b/src/charts/line.php
@@ -15,6 +15,13 @@
class ezcGraphLineChart extends ezcGraphChart
{
+ /**
+ * Constructor
+ *
+ * @param array $options Default option array
+ * @return void
+ * @ignore
+ */
public function __construct( array $options = array() )
{
$this->options = new ezcGraphLineChartOptions( $options );
@@ -38,6 +45,7 @@ class ezcGraphLineChart extends ezcGraphChart
* @param mixed $propertyName Option name
* @param mixed $propertyValue Option value;
* @return mixed
+ * @ignore
*/
public function __set( $propertyName, $propertyValue )
{
@@ -266,6 +274,10 @@ class ezcGraphLineChart extends ezcGraphChart
$element->nullPosition = $this->elements['xAxis']->getCoordinate( false );
break;
}
+ if ( !$element->font instanceof ezcGraphFontOptions )
+ {
+ echo "Wrong font config: $name\n";
+ }
$this->driver->options->font = $element->font;
$boundings = $element->render( $this->renderer, $boundings );
}
diff --git a/src/charts/pie.php b/src/charts/pie.php
index 3b38648..5f4258a 100644
--- a/src/charts/pie.php
+++ b/src/charts/pie.php
@@ -15,6 +15,13 @@
class ezcGraphPieChart extends ezcGraphChart
{
+ /**
+ * Constructor
+ *
+ * @param array $options Default option array
+ * @return void
+ * @ignore
+ */
public function __construct( array $options = array() )
{
$this->options = new ezcGraphPieChartOptions( $options );
OpenPOWER on IntegriCloud