diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-10-27 13:05:22 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-10-27 13:05:22 +0000 |
commit | 454b96f54673bbd3e35100e6683fa781808ebd4b (patch) | |
tree | fc99830f6bdc4a0f8921fb12998fd7df6e8a4477 /src | |
parent | 1d0cc07e07709c1bc59bbbf591c23b846d4fce57 (diff) | |
download | zetacomponents-graph-454b96f54673bbd3e35100e6683fa781808ebd4b.zip zetacomponents-graph-454b96f54673bbd3e35100e6683fa781808ebd4b.tar.gz |
- Added missing tests for axis
Diffstat (limited to 'src')
-rw-r--r-- | src/axis/date.php | 2 | ||||
-rw-r--r-- | src/datasets/array.php | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/axis/date.php b/src/axis/date.php index 7bb8e1c..ac9cd1f 100644 --- a/src/axis/date.php +++ b/src/axis/date.php @@ -150,7 +150,7 @@ class ezcGraphChartElementDateAxis extends ezcGraphChartElementAxis { foreach ( $values as $value ) { - if ( is_numeric( $value ) ) + if ( is_int( $value ) || is_float( $value ) ) { $value = (int) $value; } diff --git a/src/datasets/array.php b/src/datasets/array.php index c50665c..28a7cb9 100644 --- a/src/datasets/array.php +++ b/src/datasets/array.php @@ -38,10 +38,7 @@ class ezcGraphArrayDataSet extends ezcGraphDataSet { foreach ( $data as $key => $value ) { - if ( is_numeric( $value ) ) - { - $this->data[$key] = (float) $value; - } + $this->data[$key] = (float) $value; } } } |