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 #8675

Angled Text Intersects the graph

Details

Submitted2006-09-11 15:52 UTC
Fromsimonchambers at gmail dot com
StatusOpen
PackageImage_Graph
PHP Version5.0.4
OSXP
Roadmaps(Not assigned)

Comments

[2006-09-11 15:52 UTC] simonchambers at gmail dot com

Description:
------------
Text which is angled is not handled correctly. Instead of the Graph resizing to fit the label, the label is written on top of the graph.

Using the Candlestick Sample as an example:
- Using version 7.1 = http://img156.imageshack.us/my.php?image=candlestickokdz2.png
- Using version 7.2 = http://img156.imageshack.us/my.php?image=candlestickbrokenrc3.png

About as accurate as I can be!

Test script:
---------------
http://pear.veggerby.dk/samples/code/id/plot_candlestick/

Expected result:
----------------
http://img156.imageshack.us/my.php?image=candlestickokdz2.png
(Using Version <= 7.1)

Actual result:
--------------
http://img156.imageshack.us/my.php?image=candlestickbrokenrc3.png (Using Version 7.2)

[2006-11-19 15:21 UTC] sdteffen at gmail dot com

The following can be used as a workaround until the bug is resolved:

$AxisX->setLabelOption('showOffset', true);
$AxisX->setLabelOption('offset', 40);