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.
TYPE=REPORT, CHART-ORIENTATION=orientation,$
where:
Specifies the chart orientation. Valid values are:
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 |