summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2006-10-27 10:27:14 +0000
committerKore Nordmann <github@kore-nordmann.de>2006-10-27 10:27:14 +0000
commit4ed2de1f6271653a6f965237a245d0d4c2535aab (patch)
treef5add06d6b7d81e687e978f334d01e4ebc9f0ad3 /src/options
parent1658235bc062aed25270711694430deba7c31c77 (diff)
downloadzetacomponents-graph-4ed2de1f6271653a6f965237a245d0d4c2535aab.zip
zetacomponents-graph-4ed2de1f6271653a6f965237a245d0d4c2535aab.tar.gz
- Added more tests and fixed some minor setter and getter bugs
Diffstat (limited to 'src/options')
-rw-r--r--src/options/chart.php4
-rw-r--r--src/options/driver.php1
-rw-r--r--src/options/line_chart.php2
-rw-r--r--src/options/renderer.php3
4 files changed, 7 insertions, 3 deletions
diff --git a/src/options/chart.php b/src/options/chart.php
index 717fd14..4d6139d 100644
--- a/src/options/chart.php
+++ b/src/options/chart.php
@@ -12,7 +12,7 @@
*
* @property int $width
* Width of the chart.
- * @property int $heigh
+ * @property int $height
* Height of the chart.
* @property int $font
* Font used in the graph.
@@ -23,6 +23,8 @@ class ezcGraphChartOptions extends ezcBaseOptions
{
public function __construct( array $options = array() )
{
+ $this->properties['width'] = false;
+ $this->properties['height'] = false;
$this->properties['font'] = new ezcGraphFontOptions();
parent::__construct( $options );
diff --git a/src/options/driver.php b/src/options/driver.php
index fd905e5..d95b490 100644
--- a/src/options/driver.php
+++ b/src/options/driver.php
@@ -18,7 +18,6 @@
* Percent to darken circular arcs at the sides
* @property float $lineSpacing
* Percent of font size used for line spacing
- *
* @property int $font
* Font used in the graph.
*
diff --git a/src/options/line_chart.php b/src/options/line_chart.php
index a90512a..c8497ac 100644
--- a/src/options/line_chart.php
+++ b/src/options/line_chart.php
@@ -92,7 +92,7 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions
$this->properties['highlightFontCloned'] = true;
}
- $this->properties['highlightFont']->font = $propertyValue;
+ $this->properties['highlightFont']->path = $propertyValue;
}
else
{
diff --git a/src/options/renderer.php b/src/options/renderer.php
index 35441ef..0438730 100644
--- a/src/options/renderer.php
+++ b/src/options/renderer.php
@@ -37,6 +37,8 @@
* Opacity of gleam in legend symbols
* @property float $legendSymbolGleamSize
* Size of gleam in legend symbols
+ * @property float $legendSymbolGleamColor
+ * Color of gleam in legend symbols
* @property float $pieVerticalSize
* Percent of vertical space used for maximum pie chart size.
* @property float $pieHorizontalSize
@@ -79,6 +81,7 @@ class ezcGraphRendererOptions extends ezcGraphChartOptions
$this->properties['pieChartGleamBorder'] = 0;
$this->properties['legendSymbolGleam'] = false;
$this->properties['legendSymbolGleamSize'] = .9;
+ $this->properties['legendSymbolGleamColor'] = ezcGraphColor::fromHex( '#FFFFFF' );
$this->properties['pieVerticalSize'] = .5;
$this->properties['pieHorizontalSize'] = .25;
OpenPOWER on IntegriCloud