diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2009-01-20 10:50:42 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2009-01-20 10:50:42 +0000 |
commit | 5b619326b8c725be88d1b19c4d0719b6fd0da096 (patch) | |
tree | 2d23db04b57b757a1bdc28938bd7d62f4e422fb3 /src | |
parent | d23dd4b60242ffb23dbd0d294e7cef3bcdac6aff (diff) | |
download | zetacomponents-graph-5b619326b8c725be88d1b19c4d0719b6fd0da096.zip zetacomponents-graph-5b619326b8c725be88d1b19c4d0719b6fd0da096.tar.gz |
- Implemented feature #11980: Provide an initial array with labels for labeled
axis
Diffstat (limited to 'src')
-rw-r--r-- | src/axis/labeled.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/axis/labeled.php b/src/axis/labeled.php index 4992270..143244b 100644 --- a/src/axis/labeled.php +++ b/src/axis/labeled.php @@ -174,6 +174,21 @@ class ezcGraphChartElementLabeledAxis extends ezcGraphChartElementAxis } /** + * Provide initial set of labels + * + * This method may be used to provide an ordered set of labels, containing + * labels, which are not available in the datasets or to provide a label + * order different to the one in the given dataset. + * + * @param array $labels + * @return void + */ + public function provideLabels( array $labels ) + { + $this->addData( $labels ); + } + + /** * Add data for this axis * * @param array $values Value which will be displayed on this axis |