diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-05-31 15:58:13 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-05-31 15:58:13 +0000 |
commit | ed1c86d6e19c1ec2255d0e76e914de035a961cae (patch) | |
tree | 30b927d70f3dbc865f8173128d3185b0ffdfc8cc /src/axis | |
parent | 0ac10a4984ccd0095d3fd45ce4d24cd7f45120eb (diff) | |
download | zetacomponents-graph-ed1c86d6e19c1ec2255d0e76e914de035a961cae.zip zetacomponents-graph-ed1c86d6e19c1ec2255d0e76e914de035a961cae.tar.gz |
- Completed GD driver
- Added font "Bitstream Vera Sans" owned by Bitstream for testing
Diffstat (limited to 'src/axis')
-rw-r--r-- | src/axis/labeled.php | 12 | ||||
-rw-r--r-- | src/axis/numeric.php | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/axis/labeled.php b/src/axis/labeled.php index 381a7b8..679066a 100644 --- a/src/axis/labeled.php +++ b/src/axis/labeled.php @@ -151,6 +151,18 @@ class ezcGraphChartElementLabeledAxis extends ezcGraphChartElementAxis { return count( $this->labels ); } + + protected function getLabel( $step ) + { + if ( isset( $this->labels[$step] ) ) + { + return $this->labels[$step]; + } + else + { + return false; + } + } } ?> diff --git a/src/axis/numeric.php b/src/axis/numeric.php index df4b37d..daa3ff6 100644 --- a/src/axis/numeric.php +++ b/src/axis/numeric.php @@ -286,6 +286,11 @@ class ezcGraphChartElementNumericAxis extends ezcGraphChartElementAxis { return (int) ( ( $this->max - $this->min ) / $this->majorStep ); } + + protected function getLabel( $step ) + { + return $this->min + ( $step * $this->majorStep ); + } } ?> |