Re: Can't get the Legend to wrap lines in a Scatter Plot
I know this is an old post but for anyone else with this same issue I have a very quick and dirty fix. It will need neatening up for proper usage and needs to be done for the legend outline and graph positioning etc
diff pDraw.class.php pDraw.class.php.bak
1613,1618c1613
<
< //Quick and dirty fix to wrap Legend for long text
< $xBeforeWrap = isset($Format["xBeforeWrap"]) ? $Format["xBeforeWrap"] : 800;
< $originalX = $X;
< $originalY = $Y;
<
---
1738,1745d1733
<
< //Quick and dirty Fix
< if ($X >= $xBeforeWrap)
< {
< $Y=$Y+max($this->FontSize*count($Lines),$IconAreaHeight) + 5;
< $X=$originalX;
< }
<