summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2009-09-28 13:53:59 +0000
committerKore Nordmann <github@kore-nordmann.de>2009-09-28 13:53:59 +0000
commita33a0b5ce41af2eb5ba9636ac2a749f1e6261592 (patch)
treef41b3278c4f2642990924045c627cc64be81182a /src
parentf796ddc606c36350ada71a11c7acc703b98437d7 (diff)
downloadzetacomponents-graph-a33a0b5ce41af2eb5ba9636ac2a749f1e6261592.zip
zetacomponents-graph-a33a0b5ce41af2eb5ba9636ac2a749f1e6261592.tar.gz
- Fixed #15578: formatString not working with numeric axis
Diffstat (limited to 'src')
-rw-r--r--src/axis/numeric.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/axis/numeric.php b/src/axis/numeric.php
index 34995db..f9c61a8 100644
--- a/src/axis/numeric.php
+++ b/src/axis/numeric.php
@@ -478,6 +478,10 @@ class ezcGraphChartElementNumericAxis extends ezcGraphChartElementAxis
)
);
}
+ elseif ( $this->properties['formatString'] !== null )
+ {
+ return sprintf( $this->properties['formatString'], $this->properties['min'] + ( $step * $this->properties['majorStep'] ) );
+ }
else
{
return $this->properties['min'] + ( $step * $this->properties['majorStep'] );
OpenPOWER on IntegriCloud