Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Controlling Riser Width and Align it to center

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Controlling Riser Width and Align it to center
 Login/Join
 
Member
posted
We are using xaxis: { groupFit: {rule: string', value: value } } to shrink the bar graph, but it aligns incorrectly to the left side.

How do we align the below graph to the center of the border.
GRAPH FILE GGSALES
SUM DOLLARS BUDDOLLARS UNITS BUDUNITS
BY PRODUCT
WHERE CATEGORY EQ 'Gifts'
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET STYLE *
-*TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=REPORT, JUSTIFY=CENTER,COLUMN=PRODUCT,GRID=ON, BORDER=HEAVY, $
TYPE=DATA,JUSTIFY=CENTER ,COLUMN=PRODUCT, $
TYPE=TITLE,JUSTIFY=CENTER, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='ARIAL', SIZE=10, COLOR=RGB(100 100 100), STYLE=BOLD, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, FONT='Trebuchet MS', SIZE=12, COLOR=RGB(66 70 73), STYLE=BOLD, $
TYPE=FOOTING, JUSTIFY=CENTER,FONT='ARIAL', SIZE=9, STYLE=BOLD,  COLOR=RGB(100 100 100), $
*GRAPH_JS
xaxis:{ groupFit: {rule: 'exactSize', value: 100}}
*END
ENDSTYLE
END  


Alternatively, how do we align the entire graph under header

 GRAPH FILE GGSALES
SUM DOLLARS BUDDOLLARS UNITS BUDUNITS
BY PRODUCT
WHERE CATEGORY EQ 'Gifts'
HEADING 
"Title"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 400
ON GRAPH SET VAXIS 600
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET STYLE *
TYPE=REPORT, JUSTIFY=CENTER,COLUMN=PRODUCT,GRID=ON, BORDER=HEAVY, $
TYPE=DATA,JUSTIFY=CENTER ,COLUMN=PRODUCT, $
TYPE=TITLE,JUSTIFY=CENTER, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='ARIAL', SIZE=10, COLOR=RGB(100 100 100), STYLE=BOLD, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, FONT='Trebuchet MS', SIZE=12, COLOR=RGB(66 70 73), STYLE=BOLD, $
TYPE=FOOTING, JUSTIFY=CENTER,FONT='ARIAL', SIZE=9, STYLE=BOLD,  COLOR=RGB(100 100 100), $
ENDSTYLE
END
 

This message has been edited. Last edited by: FP Mod Chuck,


Version 8.2.03
Output : HTML, Excel & PDF
 
Posts: 23 | Registered: April 15, 2019Report This Post
Expert
posted Hide Post
Would ON GRAPH SET EMBEDHEADING ON help you?

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
Hi Tony,

EMBEDHEADING ON doesn't help me as it aligns the entire graph to left with the title. I would like the graph to align to the center or to a set position.
I am looking for a HTML function similar to leftgap for PDF output.

Regards,
KR


Version 8.2.03
Output : HTML, Excel & PDF
 
Posts: 23 | Registered: April 15, 2019Report This Post
Expert
posted Hide Post
Then there's plenty of examples on the forum using HTMTABLE output and positioning the output within your own DIV or IFRAME 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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
My suggestion is to use Tnoy's suggestion or InfoAssist or even ReportPainter instead of using
*GRAPH_JS
xaxis:{ groupFit: {rule: 'exactSize', value: 100}}
*END
I just did what you asked... All In InfoAssist. You can put the result of the IA fex in an HTMLFORM, as Tony suggested.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
Thank you Tony and Dong.

HTMLFORM approach was my last option. I was just wondering if there was a way around it, but looks like its the way to go.

I tried HTMLTABLE and found that the presentation is very different than JSCHART also i can't use JSchart scripts anymore. How do I retain the JSchart styling.


Regards,
KR

This message has been edited. Last edited by: rkiran1,


Version 8.2.03
Output : HTML, Excel & PDF
 
Posts: 23 | Registered: April 15, 2019Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Controlling Riser Width and Align it to center

Copyright © 1996-2020 Information Builders