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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Space Around Graph
 Login/Join
 
Platinum Member
posted
Hi Everyone

I have a graph that I am holding as htmtable and then showing in HTMLFORM. The problem is that I need to get rid of the huge margin around the graph. For some reason there is always tons of white space around the graph. I can make it smaller of course but the white space remains.

Before I start trying to figure out the correct graph API lines, I was wondering... is there a simple way to do this that I am missing?

Here is some sample code... so I want the pie chart to be left aligned in the cell... ie flush with the border...

thanks

TABLE FILE CAR
SUM SALES
ON TABLE HOLD AS XXX FORMAT HTMTABLE
END

SET LOOKGRAPH = PIE
GRAPH FILE CAR
SUM SALES
ON TABLE HOLD AS YYY FORMAT HTMTABLE
END
-HTMLFORM BEGIN
html code here that gets mangled if i post it.. so i will remove the < and >.

table cellpadding='0' cellspacing='0' width='100%' border='1'
tr
td align='left' valign='top' width='50%' !IBI.FIL.XXX; /td
td align='left' valign='top' width='50%' !IBI.FIL.YYY;/td
/tr
/table
/BODY
/html
-HTMLFORM END


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Platinum Member
posted Hide Post
This did the trick...

setTransparentBorderColor(getFrame(),true);
setTransparentBorderColor(getFrameSide(), true);
setRect(getPieFrame(), new Rectangle(-15000 -4000 18000 18000));
setPlace(false);

There is still a big box around the pie chart, but i can position the pie chart nicely to the left so it doesn't really matter.

Thanks


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Platinum Member
posted Hide Post
Hi jodye,

by using this API
setRect(getPieFrame(), new Rectangle(&x,&y,&w,&h));
we will reduce the whiteSpace around the Graph.

you can set these x,y,width and height as per your graph size.

Thanks,
Kalyan.S


Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders