PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Images » Image_Graph » Bug #7603

Repeatable axis labels

Details

Request #7603Repeatable axis labels
Submitted2006-05-11 11:06 UTC
Frommail at text-indent dot net
StatusSuspended
PackageImage_Graph
PHP Version4.4.2
OSwinxp
Roadmaps(Not assigned)

Comments

[2006-05-11 11:06 UTC] mail at text-indent dot net

Description:
------------
Pleace set an option into $_labelOptions in class Axis that allows to set repeatable labels. Example: Show day names for every day of a month (Mon, Tue, Wed, Thu, Fri, Sat, Sun) is not possible yet.

Test script:
---------------
Image/Graph/Axis.php - Line 181 ...:

var $_labelOptions = array(
1 => array(
'unique' => true,
'interval' => 1,
...

Image/Graph/Axis.php - Line 1139:

if ((isset($labelOptions['unique']) && $labelOptions['unique'] !== true) || !in_array($labelText, $this->_labelText)) {

[2007-02-19 21:54 UTC] jbv at grpmack dot com

This is a good implementation of a much needed feature. Please accept this patch into the next version.