Focal Point
WF8 Chart Xaxis Label Skip

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

November 24, 2015, 10:48 AM
Tim P.
WF8 Chart Xaxis Label Skip
Since it appears everyone is having roughly the same luck I am (barely any) with the graphing engine in WF8, i figure i'll add to the pile.

Does anyone know the syntax to skip xaxis labels in WF8? I've tried several variations of code and nothing seems to work. The manual suggests using:
axisAutoLayout:{rotate45:false, rotate90:false, truncate:true, stagger:false, skip: true},
  

to skip labels, but this is useless and does nothing. I've also tried:
setO1LabelSkipBegin(0);
setO1LabelSkipCount(1);
setO1LabelAutoSkip(2);
  

Once again is useless and done nothing.

I know there is a known bug with skipping labels and rotating them at the same time so i have rotate turned off right now. Anyone have any ideas?


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
November 24, 2015, 04:04 PM
Francis Mariani
This is what I've used in non-WF8 graphs:

setAutoSkip(getO1Label(),2);                                // sets or disables label skip for labels
setPlaceSkip(getO1Label(),0);
setSkipBegin(getO1Label(),0);                               // sets the first label to skip
setSkipCount(getO1Label(),3);                               // sets the interval of labels to skip after setSkipBegin()



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 24, 2015, 04:23 PM
Tim P.
Yup, i tried multiple variations of those commands to make it work, no dice.


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
November 24, 2015, 05:08 PM
Francis Mariani
When "ON GRAPH PCHOLD FORMAT JSCHART" is commented, the skip works. I, of course, assume this is a bug. We've given up on WF charts and now happily use Highcharts.

DEFINE FILE GGORDER
ORDER_DATE_YYMD/YYMD = ORDER_DATE;
END

GRAPH FILE GGORDER
SUM
QUANTITY
BY ORDER_DATE_YYMD AS 'Order Date'

WHERE ORDER_DATE_YYMD GE '1996/01/01'

ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET AUTOFIT ON

ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
*END
INCLUDE=endeflt.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE

ON GRAPH SET GRAPHSTYLE *
setAutoSkip(getO1Label(),2);                                // sets or disables label skip for labels: 2 (manual skipping as defined by setSkipBegin() and setSkipCount())
setPlaceSkip(getO1Label(),0);
setSkipBegin(getO1Label(),0);                               // sets the first label to skip
setSkipCount(getO1Label(),6);                               // sets the interval of labels to skip after setSkipBegin()
ENDSTYLE

END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 30, 2015, 11:55 AM
Tim P.
Francis,
We are in the same boat, simple things like skipping labels or WHEN commands that should work drive me nuts when they don't. I have a few tickets open for them to fix half of it.

The chart functionality has gotten so bad that we have opted for implementing google charts to get what we need, happily as well I might add.

Once i figure out yet another work around i'll update this post.


WebFOCUS App Studio 8.2.02
Windows 7, All Outputs
December 15, 2015, 12:57 PM
Kathleen Butler
Hi Tim,

I spoke to our Product team and let them know about the tickets you have open but I think it may be helpful if we set up some time to review this further with you. I'll send you a private message so we can make arrangements.

Thanks
Kathleen