diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-07-24 13:18:08 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-07-24 13:18:08 +0000 |
commit | 71789ffa110bba70d34bf937b315b10ee8c17aad (patch) | |
tree | 9ad6d196ac175c9e9562b90d6bd00396a428cde4 /src/axis/numeric.php | |
parent | ff849eb9f302289b044b9f98eadc02cca4ed2130 (diff) | |
download | zetacomponents-graph-71789ffa110bba70d34bf937b315b10ee8c17aad.zip zetacomponents-graph-71789ffa110bba70d34bf937b315b10ee8c17aad.tar.gz |
- Added axis label renderer for centered labels
- Fixed: Do not draw grids and steps on other axis
Diffstat (limited to 'src/axis/numeric.php')
-rw-r--r-- | src/axis/numeric.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/axis/numeric.php b/src/axis/numeric.php index 8713f1c..5a478e1 100644 --- a/src/axis/numeric.php +++ b/src/axis/numeric.php @@ -326,6 +326,19 @@ class ezcGraphChartElementNumericAxis extends ezcGraphChartElementAxis { return $this->min + ( $step * $this->majorStep ); } + + /** + * Is zero step + * + * Returns true if the given step is the one on the initial axis position + * + * @param int $step Number of step + * @return bool Status If given step is initial axis position + */ + public function isZeroStep( $step ) + { + return ( $this->getLabel( $step ) == 0 ); + } } ?> |