Specifying Chart Orientation

How to:

If you want to specify the orientation for a chart, include the CHART-ORIENTATION attribute in the TYPE=REPORT declaration of the WebFOCUS StyleSheet. The default orientation for charts is vertical.

Chart orientation is supported for bar, line, area, mekko, and boxplot charts.

Syntax: How to Specify Chart Orientation

TYPE=REPORT, CHART-ORIENTATION=orientation,$

where:

orientation

Specifies the chart orientation. Valid values are:

  • vertical, which draws the x-axis on the bottom of the chart and the y-axis on the left side of the chart. This is the default value.
  • horizontal, which draws the x-axis on the left side of the chart and the y-axis on the bottom of the chart.

Example: Specifying the Chart Orientation

The following request generates a bar chart whose orientation is horizontal. The chart type is BAR.

GRAPH FILE WF_RETAIL_LITE
SUM COGS_US 
BY BUSINESS_REGION
BY PRODUCT_CATEGORY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENWarm.sty,$
TYPE=REPORT, CHART-ORIENTATION=horizontal,$ 
TYPE=DATA, COLUMN=COGS_US, BUCKET=y-axis, $
TYPE=DATA, COLUMN=BUSINESS_REGION, BUCKET=color, $
TYPE=DATA, COLUMN=PRODUCT_CATEGORY, BUCKET=x-axis, $ 
ENDSTYLE
END

The output is shown in the following image:

WebFOCUS

Feedback