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] Graph Size auto adjust based on browser size

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Graph Size auto adjust based on browser size
 Login/Join
 
Silver Member
posted
Hello,

Looking for the setting to allow the graph to GROW or SHRINK based on the size of the browser. For instance, if you would like at this forum and shrink your browser from full screen to 50% the page will auto adjust. I have searched the manual and this forum but haven't hit anything that works...the best I have seen is to modify the HAXIS & VAXIS but that is only done at runtime, I don't want to re execute the report to make it larger.

Thank you for your time,

Nick

7.7.04 release.

This message has been edited. Last edited by: Kerry,
 
Posts: 37 | Registered: January 11, 2008Report This Post
Expert
posted Hide Post
Hi Nick,

From our graph expert: I am not aware of a command to adjust the graph size based on the browser size. I tested and when the browser size is increased scrollbars appear on the graph. If you would like to pursue further, please open a case with Customer Support Services for additional assistance. The phone number is 1-800-736-6130, or access online at InfoResponse.

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Master
posted Hide Post
Well...


Sometimes those crazy focal-pointers are just so subborn...


I started thinking...
...it's possible to save the graph output in a hold file...
...and with HTMLFORM create the output
...and with HTML-STYLE set it to 100%

it's not pretty because the browser will do the scaling.
but it's possible!

G'luck,
Dave

GRAPH FILE CAR
SUM SALES
BY CAR
ON GRAPH HOLD AS H_GRAPH FORMAT HTMTABLE 
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 800
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 GRAPHSTYLE *
setTemplateFile("");
setReportParsingErrors(false);
setSelectionEnableMove(false); 
setTransparentBorderColor(getChartBackground(),true); 
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
ENDSTYLE
END

-HTMLFORM BEGIN
<HTML>
<HEAD>
<STYLE>
.scale img { width: 100%; height: 100%; }
</STYLE>
</HEAD>
<BODY id="b">
<DIV CLASS="SCALE">!IBI.FIL.H_GRAPH;</DIV>
</BODY>
</HTML>

-HTMLFORM END


Wink Boom baby !


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Platinum Member
posted Hide Post
Hi Dave..

if we will take AHTML hold type, its not adjusting based on browser size. Please suggest for AHTML.

GRAPH FILE CAR
SUM SALES
BY CAR
ON GRAPH HOLD AS H_GRAPH FORMAT AHTML
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 800
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 GRAPHSTYLE *
setTemplateFile("");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getChartBackground(),true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
ENDSTYLE
END

-HTMLFORM BEGIN





!IBI.FIL.H_GRAPH;




-HTMLFORM END


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
 
Posts: 186 | Location: INDIA | Registered: July 11, 2013Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by Neelima:
Hi Dave..

if we will take AHTML hold type, its not adjusting based on browser size. Please suggest for AHTML.

GRAPH FILE CAR
SUM SALES
BY CAR
ON GRAPH HOLD AS H_GRAPH FORMAT AHTML
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 800
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 GRAPHSTYLE *
setTemplateFile("");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getChartBackground(),true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
ENDSTYLE
END

-HTMLFORM BEGIN





!IBI.FIL.H_GRAPH;




-HTMLFORM END


WebFocus 8104,8204
Excel/PDF/HTML/HTMLTABLE/XML/ALPHA/GIF file/GRAPH/Active technologies
 
Posts: 186 | Location: INDIA | Registered: July 11, 2013Report This Post
Master
posted Hide Post
Oh sorry, didn't see your reply.


AHTML output has to many hardcoded width and height define in it to 'hack' it. It isn't really a graph anyway.
You could do the same with the normal editor ( e.g. not the (advanced) graph editor ).

Just select AHTML as output and set it's initial presentation to "bar chart".

Why it's always 500 x 300 px I don't know.

I saved the HTML output and hacked the code.

The Jscript's are obfuscated ( good IBI, but not good enough ) and search for "500" you'll find a reference to width:500 and height:300. Change those to 800 and 600 and the AHTML will scale perfectly.

WHY this isn't an option in the editor...? I don't know.


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report 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] Graph Size auto adjust based on browser size

Copyright © 1996-2020 Information Builders