Focal Point
Hide Graph Label

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

August 25, 2008, 12:30 PM
jelli4908
Hide Graph Label
In the following example, is there a way to hide one of the BY field labels? I don't want the "Model" labels to show on the x-axis.

Thanks,
Josh

GRAPH FILE CAR
SUM SEATS
BY CAR
BY MODEL
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
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);
setPlace(true);
setDisplay(getAnnotation(0),true);
setDisplay(getO1MajorGrid(),true);
setGridStyle(getO1MajorGrid(),3);
setFillMissingData(1);
setSeriesAreRows(true);
setConnectLineMarkers(true);
setSeriesLooping(1);
setFillColor(getSeries(0),new Color(192,192,192));
setDepthRadius(0);
setDepthAngle(0);
setDisplay(getO1Label(),true);
setAxisSide(getO1Axis(),0);
setPlaceSkip(getO1Label(),1);
setTextString(getO1Title(),"CAR:MODEL");
setDisplay(getO1Title(),true);
ENDSTYLE
END



WebFOCUS 8.0.09
Windows, DB2 iSeries, ODBC
Output: Excel, HTML, PDF, AHTML
August 25, 2008, 01:09 PM
<JG>
It should be

setDisplay(getNestedO1Label0(),false);
setDisplay(getNestedO1Label1(),true);
setNestedLabels(true);

However this does not seem to be working in 764
August 25, 2008, 01:36 PM
jelli4908
JG,

Does not seem to work in 765 either. Do you know if this worked in an earlier release? If so then I will open a case with IBI.

-Josh


WebFOCUS 8.0.09
Windows, DB2 iSeries, ODBC
Output: Excel, HTML, PDF, AHTML
August 26, 2008, 02:08 PM
jelli4908
According to Tech Support you should be able to use BY FIELD NOPRINT to hide labels. However, this will not be avaiable until version 767 at the earliest.

-Josh


WebFOCUS 8.0.09
Windows, DB2 iSeries, ODBC
Output: Excel, HTML, PDF, AHTML
August 28, 2008, 07:15 AM
<JG>
Josh

Worked it out

setNestedO1Label(getNestedO1Level(0,0)," ");
setNestedO1Label(getNestedO1Level(0,1)," ");

etc. 1 entry for each label you want to suppress

It's not a problem having more, as long as you have the minimum number for the number of plot points.
August 28, 2008, 08:34 AM
jelli4908
JG,

Worked like a charm!

I did however use a -REPEAT because I have 60+ labels to hide.

Thanks for the idea!
Josh


WebFOCUS 8.0.09
Windows, DB2 iSeries, ODBC
Output: Excel, HTML, PDF, AHTML