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

<og:head headType="result" useChartJSV3="true" />
<jsp:directive.include file="/jsp/custom/result_info.jsp" />

<og:equals val1="{@command}" val2="RENEW" >
  <og:text>
	<table border="2" frame="box" rules="all" style="white-space: normal" >
	  <tr><th>ｷｰ</th><th>値</th></tr>
	  <tr><td>CLM</td><td>{@CLM}</td></tr>
	  <tr><td>VAL</td><td>{@VAL}</td></tr>
	  <tr><td>IDX</td><td>{@IDX}</td></tr>
	  <tr><td>SEL</td><td>{@SEL}</td></tr>
	  <tr><td>JOB</td><td>{@JOB}</td></tr>
	</table>
  </og:text>
</og:equals>

	<!-- ﾁｬｰﾄ情報の取得 -->
	<og:query>
		SELECT ENAME LABELS
				,SAL  VAL1
				,COMM VAL2
				,JOB
		FROM BONUS
		order by 1
	</og:query>

<og:value command="SET" key="JSONDATA">
{"command":"RENEW","CLM":"$LBL","VAL":"$VAL","IDX":"$IDX","SEL":"$SEL","debug":"{@debug}"}
</og:value>

	<!--  jsChartV3のchartTypeに「bar」,
	jsChartDataV3のoptOptionsに「type:'line'」を設定して下さい	 -->
	<og:jsChartV3
		chartType	= "bar"
		height		= "{@height}"
		width		= "{@width}"
		labelColumn	= "LABELS"
		plugins		= "chartLabelPlugin"
		onClick		= "chartLink( event, obj, null,'result_sample3.jsp', {@JSONDATA}, 'JOB', JOB );"
		varColumns	= "JOB"
		debug="{@debug}"
	>
		<og:jsChartDataV3
			chartColumn			= "VAL1"
			label				= "給料"
			type				= "line"
			borderColor			= "green"
			max					= "{@max}"
			min					= "{@min}"
		/>
		<og:jsChartDataV3
			chartColumn			= "VAL2"
			label				= "裁量手当"
			type				= "bar"
			borderColor			= "blue"
		/>
	</og:jsChartV3>
<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
