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.
I tried many ways and looked into posts in this forum as well but not able to sort the graph. I did a DEFINE field TYPE_SORT on TYPE and used it. It sorts the graph but data from TYPE_SORT appear in the legend. I tried COLUMNS way but I get inconsistent format error. TYPE is A5 field and has 5 unique values which won't change. So I tried it too as shown in 2nd graph request below.
GRAPH FILE TAB_NAME
SUM
SALE
BY TYPE_SORT NOPRINT
BY TYPE
ACROSS YEAR
END
GRAPH FILE TAB_NAME
SUM
SALE
BY TYPE
ACROSS YEAR
COLUMNS 'AVR' AND 'TOP' AND 'HIGH1' AND '3000' AND 'WEAK1'
END
Please suggest.
ThanksThis message has been edited. Last edited by: BI_Developer,
Not sure to understand what you're trying to accomplish since there is no sample of your attempted result.
But anyway, here something that I thing you are attempting to accomplish
DEFINE FILE CAR
REGION /A10 = DECODE COUNTRY ('FRANCE' '2' 'ITALY' '2' 'ENGLAND' '2' 'W GERMANY' '1' 'JAPAN' '1');
END
GRAPH FILE CAR
SUM SALES AS 'Sales'
BY REGION NOPRINT
BY COUNTRY AS ''
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 870
ON GRAPH SET VAXIS 605
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 2
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
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);
setGridStepAuto(getY1MajorGrid(),false);
setDisplay(getY2AxisLine(),true);
setDisplayOffScale(getY2Axis(),true);
setLineWidth(getY1MajorGrid(),0);
setDisplay(getY1MinorGrid(),false);
setDisplay(getY1MajorGrid(),true);
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),10);
setDisplay(getO1Label(),true);
setDisplay(getY1Label(),true);
setPlace(false);
setDepthRadius(0);
setDepthAngle(0);
setDisplay(getO1Title(),false);
ENDSTYLE
END
Key points are:
BY REGION NOPRINT
...
ON GRAPH SET GRXAXIS 2
...
setDisplay(getO1Title(),false);
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013