<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="result" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />
<og:comment
	system	= "GF:エンジンサンプル"
	pgid	= "GF7202"
	title	= "積上棒グラフ"
	date	= "2012/05/09"
	author	= "S.Li"
	text	= ""
	version	= "001"
/>

<!-- 入力チェック -->
<og:columnCheck
	command   = "{@command}"
/>
<og:value command="SQL">
		SELECT 	 DECODE('{@plotOrientation}' ,'VERTICAL' ,600 ,count(*)*80 ) GRAPH_HEIGHT
				,DECODE('{@plotOrientation}' ,'VERTICAL' ,count(*)*80 ,600 ) GRAPH_WIDTH
		FROM EMP
		<og:where>
			<og:and value=" DEPTNO = {@SOOUID}" />
		</og:where>
</og:value>
<!--  -->
<og:chartCreate
	title			= "GroupedStackedBar"
	width			= "{@GRAPH_WIDTH}"
	height			= "{@GRAPH_HEIGHT}"
	plotOrientation	= "{@plotOrientation}"
>
	<og:chartDataset
		chartType	= "GroupedStackedBar"
	>
			SELECT 	 ENAME							<!-- 営業担当者 -->
					,SAL		JANUARY				<!-- 売上( 1月) -->
					,SAL * 1.5	FEBRUARY			<!-- 売上( 2月) -->
					,SAL * 0.8	MARCH				<!-- 売上( 3月) -->
					,SAL * 2	APRIL				<!-- 売上( 4月) -->
					,SAL * 1.2	MAY					<!-- 売上( 5月) -->
					,SAL * 1.6	JUNE				<!-- 売上( 6月) -->
					,SAL * 1.7	JULY				<!-- 売上( 7月) -->
					,SAL * 0.7	AUGUEST				<!-- 売上( 8月) -->
					,SAL * 1.4	SEPTEMBER			<!-- 売上( 9月) -->
					,SAL * 1.6	OCTOBER				<!-- 売上(10月) -->
					,SAL * 1.9	NOVEMBER			<!-- 売上(11月) -->
					,SAL * 3	DECEMBER			<!-- 売上(12月) -->
			FROM EMP
			<og:where>
				<og:and value=" DEPTNO = {@SOOUID}" />
			</og:where>
	</og:chartDataset>
</og:chartCreate>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
