Controlling Nesting of X-Axis Labels

The xaxis:nestingConcatSymbol property controls the nesting of x-axis labels.

If this property is not set, or is set to null (the default value) or undefined, nested x-axis labels are generated. If this property is set to a string (for example, ':'), the x-axis labels are concatenated, with the specified string placed between the sort field values.

Example: Controlling Nesting of X-Axis Labels

The following request generates nested x-axis labels.

GRAPH FILE WF_RETAIL_LITE
SUM DAYSDELAYED
BY TIME_DATE_QTR
BY TIME_DATE_MONTH
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH BAR       
ON GRAPH SET STYLE *
TYPE=DATA, COLUMN=DAYSDELAYED, BUCKET=y-axis, $
TYPE=DATA, COLUMN=TIME_DATE_QTR, BUCKET=x-axis, $ 
TYPE=DATA, COLUMN=TIME_DATE_MONTH, BUCKET=x-axis, $ 
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
*GRAPH_JS
xaxis: { labels: { nestingConcatSymbol: null} }
*END 
ENDSTYLE
END

The output is shown in the following image.

The following version of the request makes the concatenation string a slash surrounded by spaces (' / ').

GRAPH FILE WF_RETAIL_LITE
SUM DAYSDELAYED
BY TIME_DATE_QTR
BY TIME_DATE_MONTH
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH BAR       
ON GRAPH SET STYLE *
TYPE=DATA, COLUMN=DAYSDELAYED, BUCKET=y-axis, $
TYPE=DATA, COLUMN=TIME_DATE_QTR, BUCKET=x-axis, $ 
TYPE=DATA, COLUMN=TIME_DATE_MONTH, BUCKET=x-axis, $ 
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
*GRAPH_JS
xaxis: { labels: { nestingConcatSymbol: ' / '} }
*END 
ENDSTYLE
END

The output is shown in the following image.

WebFOCUS

Feedback