summaryrefslogtreecommitdiffstats
path: root/src/options
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2008-01-21 12:17:39 +0000
committerKore Nordmann <github@kore-nordmann.de>2008-01-21 12:17:39 +0000
commitbeedcee208a9d53a28c0b75e62fa97c0fa1b2db4 (patch)
tree341a0cebde6b68324ae09a8174a539577870d547 /src/options
parentef2e2c55d1d937ff4dc84fd270214e340ca44d58 (diff)
downloadzetacomponents-graph-beedcee208a9d53a28c0b75e62fa97c0fa1b2db4.zip
zetacomponents-graph-beedcee208a9d53a28c0b75e62fa97c0fa1b2db4.tar.gz
- Implemented feature #12382: Enhance line chart to allow invisible lines.
Diffstat (limited to 'src/options')
-rw-r--r--src/options/line_chart.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/options/line_chart.php b/src/options/line_chart.php
index 8f438fa..0ccb09f 100644
--- a/src/options/line_chart.php
+++ b/src/options/line_chart.php
@@ -84,6 +84,14 @@ class ezcGraphLineChartOptions extends ezcGraphChartOptions
switch ( $propertyName )
{
case 'lineThickness':
+ if ( !is_numeric( $propertyValue ) ||
+ ( $propertyValue < 0 ) )
+ {
+ throw new ezcBaseValueException( $propertyName, $propertyValue, 'int >= 0' );
+ }
+
+ $this->properties[$propertyName] = (int) $propertyValue;
+ break;
case 'symbolSize':
case 'highlightSize':
if ( !is_numeric( $propertyValue ) ||
OpenPOWER on IntegriCloud