diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2008-01-21 12:17:39 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2008-01-21 12:17:39 +0000 |
commit | beedcee208a9d53a28c0b75e62fa97c0fa1b2db4 (patch) | |
tree | 341a0cebde6b68324ae09a8174a539577870d547 /src/options | |
parent | ef2e2c55d1d937ff4dc84fd270214e340ca44d58 (diff) | |
download | zetacomponents-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.php | 8 |
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 ) || |