summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-12-04 16:03:47 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-12-04 16:03:47 +0000
commitb0bd4a7169a375ff74266d5cb15e817b1484dc07 (patch)
tree4d6aed10aaec67892ce1f0137726ebef60b6722e /src/options
parentb322a8d3c8f26d9df21244319c3a2aa281795d07 (diff)
downloadzetacomponents-graph-b0bd4a7169a375ff74266d5cb15e817b1484dc07.zip
zetacomponents-graph-b0bd4a7169a375ff74266d5cb15e817b1484dc07.tar.gz
- Implemented feature #014010: Possibility to set x/y offsets for
highlightValue (Patch by Markus Lervik)
Diffstat (limited to 'src/options')
-rw-r--r--src/options/line_chart.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/options/line_chart.php b/src/options/line_chart.php
index fa963dd..b596efb 100644
--- a/src/options/line_chart.php
+++ b/src/options/line_chart.php
@@ -75,6 +75,8 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions
$this->properties['highlightFont'] = new ezcGraphFontOptions();
$this->properties['highlightFontCloned'] = false;
$this->properties['highlightSize'] = 14;
+ $this->properties['highlightXOffset'] = 0;
+ $this->properties['highlightYOffset'] = 0;
$this->properties['highlightLines'] = false;
$this->properties['stackBars'] = false;
@@ -110,7 +112,14 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions
{
throw new ezcBaseValueException( $propertyName, $propertyValue, 'int >= 1' );
}
-
+ $this->properties[$propertyName] = (int) $propertyValue;
+ break;
+ case 'highlightXOffset':
+ case 'highlightYOffset':
+ if ( !is_numeric ( $propertyValue ) )
+ {
+ throw new ezcBaseValueException( $propertyName, $propertyValue, 'int' );
+ }
$this->properties[$propertyName] = (int) $propertyValue;
break;
case 'fillLines':
OpenPOWER on IntegriCloud