Focal Point
Graph with across titles

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/778100433

January 06, 2010, 12:00 PM
lovime85
Graph with across titles
I have a report with an across column... when i have the default initial presentation it displays the values i want..but when i change it to bar chart as my initial presentation it group the across well but the titles are not the one of the across column..how can i resolve it?

Thanks in advance Big Grin


WebFOCUS 7.6, Windows
All output
January 06, 2010, 12:11 PM
GinnyJakes
Is this an Active Report (AHTML)? Can you post your code?


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
January 06, 2010, 01:21 PM
lovime85
Yes..it is an active report..
here is the code..
TABLE FILE F_QLTY_PATSATISFACTION
SUM
'AVE.F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.RATING' AS ''
BY 'J0.D_TIME.TIME_QUARTERNAME'
BY 'F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.SERVICECENTER_ID' NOPRINT
BY 'F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.SPECIALTY_ID' NOPRINT
ACROSS 'J3.D_GEOGRAPHY.GEOG_REGION_DESC'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
LINES-PER-PAGE=20,
REPORT-VIEW=CHART,
CHART-TYPE=BAR,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END


WebFOCUS 7.6, Windows
All output
January 06, 2010, 03:24 PM
GinnyJakes
I don't know the answer. I checked the doc and didn't see a restriction. So I did some experimenting.
TABLE FILE CENTURYSALES
SUM
     COMPUTE REVENUE/D20.2M = COSTOFGOODSSOLD - PROFIT; AS 'Revenue'
BY REGION
ACROSS YYEARMONTH
HEADING
"Century Electronics:  Detailed Revenue Report"
WHERE YEAR EQ 2006;
WHERE YYEARMONTH GE 200608
ON TABLE SET PAGE-NUM OFF
ON TABLE SET BYDISPLAY ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
LINES-PER-PAGE=20,
REPORT-VIEW=CHART,
CHART-TYPE=BAR,
$
TYPE=TITLE,
STYLE=BOLD,
$
ENDSTYLE
END

If I change the date to 200609, I get a chart. As is, I get an error saying 'Too many bars'. Maybe with your multiple BYs and the ACROSS, you wind up with too many combinations. And maybe you aren't seeing the error.

Can you try reducing your query to the point where you can get a chart?

Also, can you add your subrelease to your signature. There have been lots of changes in 7.6 from ..0 to ..10 and it is helpful to know where you are in the range.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
January 06, 2010, 06:06 PM
lovime85
Hi..I don't have the centurysales table..
and I'm still trying to get this graph.. I tried to do it like an advance graph..and it worked...but when I tried to reference it from an HTML File I can't have the advantages of building the dropdown from an active report...what can I do???

i leave you the code of the advance graphic in case is needed.. aah and also my wf version is 7.6.10

Advanced Graphic Code:

GRAPH FILE F_QLTY_PATSATISFACTION
-* Created by Advanced Graph Assistant
SUM AVE.F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.RATING
BY F_QLTY_PATSATISFACTION.D_GEOGRAPHY.GEOG_REGION_DESC
ACROSS F_QLTY_PATSATISFACTION.D_TIME.TIME_QUARTERNAME
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 700
ON GRAPH SET VAXIS 340
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 1
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
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);
setTextString(getO1Title(),"QUARTERS");
setDisplay(getO1Title(),true);
setTextString(getY1Title(),"SATISFACTION");
setDisplay(getY1Title(),true);
setLegendPosition(2);
setDisplay(getY1MajorGrid(),false);
setDisplay(getO1MajorGrid(),false);
setRiserBarGroupSpacing(10);
setPlace(false);
ENDSTYLE
END

Actual Active Report Code:
-* File PatientSatisfaction.fex
DEFINE FILE F_QLTY_PATSATISFACTION
RATING/D12.2=((F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.STAFF_RATING_SCORE + F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.SPECIALTY_RATING_SCORE + F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.SERVICECENTER_RATING_SCORE)*100)/300;
END
TABLE FILE F_QLTY_PATSATISFACTION
SUM
'AVE.F_QLTY_PATSATISFACTION.F_QLTY_PATSATISFACTION.RATING'
BY 'F_QLTY_PATSATISFACTION.D_GEOGRAPHY.GEOG_REGION_DESC'
ACROSS 'F_QLTY_PATSATISFACTION.D_TIME.TIME_QUARTERNAME'
HEADING
""
FOOTING
""
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
LINES-PER-PAGE=20,
REPORT-VIEW=CHART,
CHART-TYPE=BAR,
$
TYPE=TITLE,
STYLE=BOLD,
$
TYPE=TABHEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=TABFOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=HEADING,
SIZE=12,
STYLE=BOLD,
$
TYPE=FOOTING,
SIZE=12,
STYLE=BOLD,
$
TYPE=SUBHEAD,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBFOOT,
SIZE=10,
STYLE=BOLD,
$
TYPE=SUBTOTAL,
BACKCOLOR=RGB(210 210 210),
$
TYPE=ACROSSVALUE,
SIZE=9,
$
TYPE=ACROSSTITLE,
STYLE=BOLD,
$
TYPE=GRANDTOTAL,
BACKCOLOR=RGB(210 210 210),
STYLE=BOLD,
$
ENDSTYLE
END


WebFOCUS 7.6, Windows
All output