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     [SOLVED] Graph Issue

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Graph Issue
 Login/Join
 
Expert
posted
Why does the following code show a split graph when "ITEM3" is DEFINEd as 100 but not when it's DEFINEd as 800+?
I need to use this as an HTMTABLE.
DEFINE FILE CAR
ITEM1/I3=900;
ITEM2/I3=800;
ITEM3/I3=700;
END
GRAPH FILE CAR
SUM ITEM1 ITEM2 ITEM3
BY CAR.ORIGIN.COUNTRY AS '' NOPRINT
WHERE RECORDLIMIT EQ 1;
-*ON GRAPH PCHOLD FORMAT JSCHART
-*ON GRAPH HOLD FORMAT HTMTABLE AS GRAPH856
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRWIDTH 1
ON GRAPH SET HAXIS 800.0
ON GRAPH SET VAXIS 60.0
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, JUSTIFY=center, FONT='TAHOMA', SIZE=8 COLOR=RED, TITLETEXT=&WF_TITLE.QUOTEDSTRING, GRID=OFF, BORDER=LIGHT, $
TYPE=DATA, STYLE=normal, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getLegendArea(),false);
setFontName(getLegendText(), "Arial");
setFontSizeVC(getLegendText(), 1130);
setGridStepAuto(getY1MajorGrid(),false);
setDataTextPosition(5);
setDataTextDisplay(true);
setPieFeelerTextDisplay(1);
setY1AxisSide(3);
setGridStep(getY1MajorGrid(),20.0);
setTextFormatPreset(getDataText(),0);
setTextFormatPreset(getY1Label(),-2);
setDisplay(getY1Label(),false);
setDisplay(getO1Label(),false);
setTextFormatPattern(getDataText(),"###");
*GRAPH_JS_FINAL
"blaProperties": {
    "orientation": "horizontal"
},
"agnosticSettings": {
    "chartTypeFullName": "Bar_Clustered_Horizontal"
}
*END
ENDSTYLE
END
-RUN

BONUS Question: How do I make the values, shown in the BARs larger?

Thanks in Advance, Doug

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




   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
Expert
posted Hide Post
I get the BONUS. Add the following lines. This isn't very intuitive in the GUI, is it?
setFontSizeAbsolute(getDataText(),true);
setAutofit(getDataText(),false);
setFontSizeInPoints(getDataText(),8);
setPlaceResize(getDataText(),0);
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I got it: setScaleMax(getY1Axis(),1000.0);
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     [SOLVED] Graph Issue

Copyright © 1996-2020 Information Builders