Focal Point
Automatic major grid

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

August 10, 2012, 01:05 PM
Carlos Dias
Automatic major grid
Hello,
Using the setO1LabelAutoSkip(1) WF automatically omits labels at regular intervals when the graph size is reduced. But I can't find a way to draw the major grid only on those labels.

Using the CAR file:
-* File newfex46.fex
GRAPH FILE CAR
SUM CAR.SPECS.WIDTH 
ACROSS CAR.CARREC.MODEL 
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET VAXIS 562
ON GRAPH SET HAXIS 600
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(true);
setConnectScatterMarkers(true);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,2);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);

setTextRotation(getO1Label(),0);

ENDSTYLE
ON GRAPH SET STYLE *
$
ENDSTYLE
END


I just want to show the grids on the points where there is a label ("100 LS 2 DOOR AUTO", "2002 2 DOOR AUTO", "5301 4 DOOR AUTO" e "TR7"), not on all, as you can see here:


I know that I can use setMajorGridDrawEveryCount and set LabelAutoSkip to manual, but is hard for me to control the labels to show.

Any suggestion on that?

Thanks,
Carlos Dias


WebFOCUS version: 7.6
Linux/Windows
HTML, Excel
August 13, 2012, 03:27 PM
Doug
I'm not sure if I understand what you're asking. This isn't really skipping anything. It's only not displaying all the models. So, it apears to be skipping (Change HAXIS to 2600 to see what I mean)




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
August 16, 2012, 05:34 PM
Carlos Dias
No. I want to show the vertical grid where there is a label. Just want to see the grid over the labels "100 LS 2 DOOR AUTO", "2002 2 DOOR AUTO", "5301 4 DOOR AUTO" and "TR7". And not show the vertical grid where there are no labels. Something like this:



WebFOCUS version: 7.6
Linux/Windows
HTML, Excel