diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 12:51:55 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-04-26 12:51:55 +0000 |
commit | 6f37572b09e427428c9c50f2a325163ad29ba0a2 (patch) | |
tree | 2242bd28f3cfed0460cb01ed9933ffcd273b4cdf /src/charts | |
parent | 1f98a107eef3f2208f7b409f085057cf78662991 (diff) | |
download | zetacomponents-graph-6f37572b09e427428c9c50f2a325163ad29ba0a2.zip zetacomponents-graph-6f37572b09e427428c9c50f2a325163ad29ba0a2.tar.gz |
- Created an interface ezcGraphRadarRenderer to be implemented by renderers
which are able to render radar charts.
# Interface required to not break BC with custom user renderers
Diffstat (limited to 'src/charts')
-rw-r--r-- | src/charts/radar.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/charts/radar.php b/src/charts/radar.php index d545697..a3913ba 100644 --- a/src/charts/radar.php +++ b/src/charts/radar.php @@ -118,6 +118,16 @@ class ezcGraphRadarChart extends ezcGraphChart throw new ezcBaseValueException( $propertyName, $propertyValue, 'ezcGraphChartElementAxis' ); } break; + case 'renderer': + if ( $propertyValue instanceof ezcGraphRadarRenderer ) + { + parent::__set( $propertyName, $propertyValue ); + } + else + { + throw new ezcBaseValueException( $propertyName, $propertyValue, 'ezcGraphRadarRenderer' ); + } + break; default: parent::__set( $propertyName, $propertyValue ); } |