diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2008-12-04 16:03:47 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2008-12-04 16:03:47 +0000 |
commit | b0bd4a7169a375ff74266d5cb15e817b1484dc07 (patch) | |
tree | 4d6aed10aaec67892ce1f0137726ebef60b6722e /src/options | |
parent | b322a8d3c8f26d9df21244319c3a2aa281795d07 (diff) | |
download | zetacomponents-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.php | 11 |
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': |