<?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	= "GF7205"
	title	= "重なり棒"
	date	= "2012/05/09"
	author	= "S.Li"
	text	= ""
	version	= "001"
/>

<!-- 入力チェック -->
<og:columnCheck
	command   = "{@command}"
/>
<og:value command="SQL">
	<jsp:text>
		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>
	</jsp:text>
</og:value>
<!--  -->
<og:chartCreate
	title			= "LayeredBar"
	width			= "{@GRAPH_WIDTH}"
	height			= "{@GRAPH_HEIGHT}"
	plotOrientation	= "{@plotOrientation}"
>
	<og:chartDataset
		chartType	= "LayeredBar"
	>
		<jsp:text>
			SELECT 	 ENAME							<!-- 営業担当者 -->
					,SAL * 2.1	JANUARY				<!-- 売上( 1月) -->
					,SAL * 2.0	FEBRUARY			<!-- 売上( 2月) -->
					,SAL * 1.9	MARCH				<!-- 売上( 3月) -->
					,SAL * 1.8	APRIL				<!-- 売上( 4月) -->
					,SAL * 1.7	MAY					<!-- 売上( 5月) -->
					,SAL * 1.6	JUNE				<!-- 売上( 6月) -->
					,SAL * 1.5	JULY				<!-- 売上( 7月) -->
					,SAL * 1.4	AUGUEST				<!-- 売上( 8月) -->
					,SAL * 1.3	SEPTEMBER			<!-- 売上( 9月) -->
					,SAL * 1.2	OCTOBER				<!-- 売上(10月) -->
					,SAL * 1.1	NOVEMBER			<!-- 売上(11月) -->
					,SAL * 1.0	DECEMBER			<!-- 売上(12月) -->
			FROM EMP
			<og:where>
				<og:and value=" DEPTNO = {@SOOUID}" />
			</og:where>
		</jsp:text>
	</og:chartDataset>
</og:chartCreate>

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