Focal Point
Hi i Want To Increase my Pie Graph Legend Text Size

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6271048561

April 30, 2006, 07:13 AM
kalyanswarna
Hi i Want To Increase my Pie Graph Legend Text Size
Hi All,
i Want To Increase my Pie Graph Legend Text Size.i tried with Some API but it won't work
is there any API to increase the legend.PLease Give me the API.
Thanks,
Kalyan.S
May 01, 2006, 09:54 AM
Prarie
-* The line below controls the size and location of the Legend rectangle
-* Play with one number at a time and make big changes so they're
-* obvious. It takes experimentation.
setRect(getLegendArea(),new Rectangle(-16000,-15000,32000,9000));

setFontSizeVC(getLegendText(0),1100);

You will have to play with these.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Hi, Prarie
This API is not Workinfg for me i tried with this one. give me an Example with Increased Legend Text Size.

Thanks,
Kalyan.S
I had that information from a Graphing Class IBI gave us. I do not have any Pie Chart examples...Perhaps someone out there can help...
What Version are you on?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Having just started on some graphing work myself, I've found there are a lot of settings that go into determining the final output. Setting one of them with an API often isn't enough to accomplish exactly what you want.

Here are some lines of code that change the pie legend text to 7 points. This is just one way to do it and may not be the best. Of special interest is turning off the automatic layout manager in the first line.

setPlace(false);
setRect(getLegendArea(), new Rectangle(2500, -9500, 18000, 15000));
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 7);
quote:
setPlace(false);
setRect(getLegendArea(), new Rectangle(2500, -9500, 18000, 15000));
setFontSizeAbsolute(getLegendText(), true);
setFontSizeInPoints(getLegendText(), 7);

Hi Thanks alot it's working Fine.

Thanks
Kalyan


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------