As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Hello all! I am trying to create a graph in the "wonderful" Advanced Graph Assistant in 762. I cannot get anything to line up correctly. My report is fairly simple: -*INTERNAL_PROPERTIES$SampleData=false;OBJECTID=GLOBAL -*INTERNAL_PROPERTIES$GlobalRecordLimit=500;OBJECTID=GLOBAL -*INTERNAL_PROPERTIES$FieldDisplayMode=label;OBJECTID=GLOBAL -*INTERNAL_PROPERTIES$PrefixDisplayMode=;OBJECTID=GLOBAL GRAPH FILE CAR -* Created by Advanced Graph Assistant SUM CAR.BODY.DEALER_COST BY CAR.ORIGIN.COUNTRY ACROSS CAR.CARREC.MODEL ON GRAPH HOLD AS CARGRAPH FORMAT SVG ON GRAPH SET GRMERGE ADVANCED ON GRAPH SET GRMULTIGRAPH 0 ON GRAPH SET GRLEGEND 1 ON GRAPH SET GRXAXIS 1 ON GRAPH SET HAXIS 8 ON GRAPH SET VAXIS 4 ON GRAPH SET UNITS INCHES ON GRAPH SET LOOKGRAPH VBAR ON GRAPH SET GRAPHSTYLE * setTemplateFile("/images/tdg/template/IBICylinderOnGrey.txt"); setReportParsingErrors(false); setSelectionEnableMove(false); setDepthRadius(0); setDepthAngle(0); setLegendPosition(-1); setLegendAutomatic(false); setRect(getLegendArea(),new Rectangle(-12544.0,-14720.0,32000.0,5120.0)); setTextRotation(getO1Label(),3); setRect(getFrame(),new Rectangle(-10368.0,-3584.0,20800.0,17664.0)); ENDSTYLE END -******************** -******************** TABLE FILE CAR PRINT COUNTRY NOPRINT HEADING " " ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE PCHOLD AS GRAPHDISP FORMAT PDF ON TABLE SET STYLE * UNITS=IN, SQUEEZE=ON, ORIENTATION=PORTRAIT, $ -*TYPE=REPORT, -* GRID=OFF, -* FONT='TIMES NEW ROMAN', -* SIZE=10, -*$ TYPE=HEADING, IMAGE=CARGRAPH.SVG, POSITION=(+0.00000 +0.000000), -* SIZE=(7.500000 4.000000), $ ENDSTYLE END
The sample shown in the editor does not match the output. I can get the graph to look very good in the editor, but when it runs, nothing seems to be in the correct place.
Has anyone run into this before and have a possible fix/workaround?
Or am I simply doing something wrong. Any help would be GREATLY appreciated
Apparently their are issues with the 7.6.2 version, we are waiting for the 7.6.4 before using the advanced graph assistant. Get really strange errors in our environment.
Leah
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
The new Graph Assistant is a great thing...but with everything new..it is going to have issues...I was able to tweak the numbers in Legends to make it look like it should..but you shoulnd't have to do that. We are waiting on 7.6.4 too...but then GUI only gets you so far and into the code you must go.
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005
Thanks to everyone for your time. I was affraid that was going to be the answer. As you said Prarie, into the code I go to see if I can manually move things around.
Thanks again, and if anyone has any updates, please let us know!
We use AIX and WebSphere with 762 and basically cannot use the Advanced Graph Assistant at all. If I go to Filters or Chart Properties, I get a 5051 error. I have a case open and it is a known problem with Unix installations.
My graph expert suggests adding these two lines: setPlace(true); setTextWrap(getO1Label(), true); And that does look better (but your legend box size needs some tweaking).
Brian Suter VP WebFOCUS Product Development
Posts: 200 | Location: NYC | Registered: January 02, 2007
Try adding the following lines to your request setPlace(true); setTextWrap(getO1Label(), true);
setPlace(true); (or 'Fit to Chart Area' property in GUI) should fix the alignment of the X-Axis labels.
You might notice that legend overlaps with the X-Axis title and that is due to the Legend rectangle area that was specified in: setRect(getLegendArea(),new Rectangle(-12544.0,-14720.0,32000.0,5120.0));
I was out on Friday, so I am just now getting back to this.
Thank you for that code. I did an initial test and things look remarkably better. I'll keeping toying with the placements of the different areas and see if I can't get it looking better with the AGA preview.
OK, so I have the graph looking pretty good (in the preview and when I run it). However, as soon as I add a title, with or without a subtitle), the graph portion gets "squished" down to an unreadable size (width remains correct).
Is this just another "undocumented feature" that I simply need to manually adjust the title and subtitle rectangles? Or is there something else I am missing?
Another odd thing about the setPlace(true); piece of code. I can't resize my Legend rect.
I can move it all around the the window, but no matter how I adjust the width and height, the labels remain in the lower corner of the rect (which is expected) and are so narrow that you cannot read what they say.
If I set setPlace() to false, I can adjust the Legend rect so all the labels are readable, but I lose the other formatting you folks have helped me with.