summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-01-07 09:59:44 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-01-07 09:59:44 +0000
commitccc75f9a0f37cf808a4dda2dc68b731e0be177ef (patch)
tree3506265edc50b9aceb5bea8886ac9260e03cda61 /src/options
parentbd8a1c9052a0c97f374a760618ea04bdda3d79d3 (diff)
downloadzetacomponents-graph-ccc75f9a0f37cf808a4dda2dc68b731e0be177ef.zip
zetacomponents-graph-ccc75f9a0f37cf808a4dda2dc68b731e0be177ef.tar.gz
- Fixed issue #11777: Optionally independent axis font configuration
Diffstat (limited to 'src/options')
-rw-r--r--src/options/renderer.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/options/renderer.php b/src/options/renderer.php
index 18f6635..c8465dc 100644
--- a/src/options/renderer.php
+++ b/src/options/renderer.php
@@ -73,6 +73,9 @@
* Color used for gleam on pie charts.
* @property float $pieChartGleamBorder
* Do not draw gleam on an outer border of this size.
+ * @property bool $syncAxisFonts
+ * Synchronize fonts of axis. With the defaut true value, the only
+ * the fonts of the yAxis will be used.
*
* @version //autogentag//
* @package Graph
@@ -107,6 +110,7 @@ class ezcGraphRendererOptions extends ezcGraphChartOptions
$this->properties['legendSymbolGleamColor'] = ezcGraphColor::fromHex( '#FFFFFF' );
$this->properties['pieVerticalSize'] = .5;
$this->properties['pieHorizontalSize'] = .25;
+ $this->properties['syncAxisFonts'] = true;
parent::__construct( $options );
}
@@ -174,11 +178,12 @@ class ezcGraphRendererOptions extends ezcGraphChartOptions
break;
case 'showSymbol':
+ case 'syncAxisFonts':
if ( !is_bool( $propertyValue ) )
{
throw new ezcBaseValueException( $propertyName, $propertyValue, 'bool' );
}
- $this->properties['showSymbol'] = (bool) $propertyValue;
+ $this->properties[$propertyName] = (bool) $propertyValue;
break;
case 'pieChartOffset':
OpenPOWER on IntegriCloud