Focal Point
[SOLVED] graphing is giving me grief

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

September 11, 2008, 07:06 AM
Allen Cummings
[SOLVED] graphing is giving me grief
Is there some trick to get Focus to respond to any of the setFont commands within the
ON GRAPH SET GRAPHSTYLE * ENDSTYLE block? Some of the font sizes work like 1 to 9. Than everything seems to default to some large font size.

This message has been edited. Last edited by: Kerry,
September 11, 2008, 07:28 AM
<JG>
Allen,

What release? What platform?

Can you give a repro using the car, or any other standard IB foc file.

Then you might be overwhelmed with help.
September 11, 2008, 08:10 AM
Allen Cummings
I guess I just expect to be able to type;

setFontSizeAbsolute(getLegendText(),true);
setFontName(getY1Label(),"TimesRoman");
setFontSize(getY1Label(),6);

and than

setFontSizeAbsolute(getLegendText(),true);
setFontName(getY1Label(),"TimesRoman");
setFontSize(getY1Label(),9);

And get different results, just like the documentations examples. Unless there is some other combination of commands needed which are assumed that everyone knows you have to use in addition to the above.
September 11, 2008, 08:16 AM
Tony A
Allen,

setPlace(false);

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 11, 2008, 08:18 AM
<JG>
Allen,

Totally illogical,

You cannot apply different styling to the same object.

getLegendText() identifies all legends.
It does not take a locator for example getLegendText(1)

Because of that you cannot vary the text size or font of individual legends.
Same applies to labels.
September 11, 2008, 08:33 AM
Allen Cummings
I guess I did not make it clear, if I run the graph with the font value set to 6 and than run it with the font value equal to 9, there is no noticeable difference in the results. I am aware that if I run the graph with different values in the same run, it would not work.
September 11, 2008, 08:38 AM
Allen Cummings
Tony A,
seting setPlace(false), appears to work. But now the x axis is all cramp together. I guess I now have to play around with the font on the x axis now.
September 11, 2008, 08:40 AM
<JG>
OK,

On that basis setPlace(false); as Tony suggested will have an affect, as this default
overides a lot of the API calls coded manually.

Using false however will probabley have a major impact on the output meaning you will have to
include many more API calls to get what you want.

(edit) You replied first Allen and discovered exacrtly what I meant
September 11, 2008, 08:50 AM
Allen Cummings
Tony,
I forgot to tell you thanks for your response. I still working on the font for x axis.
September 11, 2008, 09:05 AM
Tony A
Allen,

As JG states, setPlace(false); does mean more coding as the auto placement of graph components is turned off. However, I sometimes prefer this as I can control the output more.

As for the x1 axis font, look towards O1Title etc.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10