<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/WEB-INF/web-graph.tld" prefix="graph" %>
<%@ page import="java.util.*" %>
<%
List list=new ArrayList();
Map map=null;
int k=0;
for(int i=1;i<10;i++){
k=i+1;
map=new HashMap();
map.put("seriesTitle","上海");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*2*10));
map.put("lineTitle","上海股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","南京");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*3*10));
map.put("lineTitle","南京股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","北京");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*4*10));
map.put("lineTitle","北京股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","西安");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*5*10));
map.put("lineTitle","西安股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","济南");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*6*10));
map.put("lineTitle","济南股价");
map.put("endLine",k*3+"号");
map.put("grpType","column");
list.add(map);
}
request.setAttribute("data",list);
%>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY >
<table width="100%">
<tr>
<td><label class="title">图表组件</label></td>
<% String file=request.getServletPath().substring(1);
String app=request.getContextPath();
%>
<td><label class="title">url:<%=file%></label></td>
<td align="right" valign="bottom" nowrap> [<a href="<%=app%>/src.jsp?target=<%=file %>" target="source">源代码</a>] [<a href="xmldef.xml" target="xmldef">说明文档</a>] </td>
</tr>
</table>
<hr>
<FORM>
<graph:chart title="全国国民生产总值比较" type="pie:column3d:lines:eventgrp:mixgrp:3dbar:curve:pie3d:stack3d:barstack3d" width="100%" height="100%" displayTitle="true" linePoint="false" defaultRow="1" newLine="true" graphTitle="value" Position="top" xxName="日期" yyName="生产总值" Xy="true">
<graph:data seriesTitle="seriesTitle" grpType="grpType" collection="data" itemTitle="itemTitle" itemValue="itemValue" lineTitle="lineTitle" endLine="endLine">
</graph:data>
</graph:chart>
</FORM>
</BODY>
</HTML>
<script>
var id=setTimeout("showChart('pie')",1000);
</script>
<%@ taglib uri="/WEB-INF/web-graph.tld" prefix="graph" %>
<%@ page import="java.util.*" %>
<%
List list=new ArrayList();
Map map=null;
int k=0;
for(int i=1;i<10;i++){
k=i+1;
map=new HashMap();
map.put("seriesTitle","上海");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*2*10));
map.put("lineTitle","上海股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","南京");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*3*10));
map.put("lineTitle","南京股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","北京");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*4*10));
map.put("lineTitle","北京股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","西安");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*5*10));
map.put("lineTitle","西安股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","济南");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*6*10));
map.put("lineTitle","济南股价");
map.put("endLine",k*3+"号");
map.put("grpType","column");
list.add(map);
}
request.setAttribute("data",list);
%>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY >
<table width="100%">
<tr>
<td><label class="title">图表组件</label></td>
<% String file=request.getServletPath().substring(1);
String app=request.getContextPath();
%>
<td><label class="title">url:<%=file%></label></td>
<td align="right" valign="bottom" nowrap> [<a href="<%=app%>/src.jsp?target=<%=file %>" target="source">源代码</a>] [<a href="xmldef.xml" target="xmldef">说明文档</a>] </td>
</tr>
</table>
<hr>
<FORM>
<graph:chart title="全国国民生产总值比较" type="pie:column3d:lines:eventgrp:mixgrp:3dbar:curve:pie3d:stack3d:barstack3d" width="100%" height="100%" displayTitle="true" linePoint="false" defaultRow="1" newLine="true" graphTitle="value" Position="top" xxName="日期" yyName="生产总值" Xy="true">
<graph:data seriesTitle="seriesTitle" grpType="grpType" collection="data" itemTitle="itemTitle" itemValue="itemValue" lineTitle="lineTitle" endLine="endLine">
</graph:data>
</graph:chart>
</FORM>
</BODY>
</HTML>
<script>
var id=setTimeout("showChart('pie')",1000);
</script>
<%@ taglib uri="/WEB-INF/web-graph.tld" prefix="graph" %>
<%@ page import="java.util.*" %>
<%
List list=new ArrayList();
Map map=null;
int k=0;
for(int i=1;i<10;i++){
k=i+1;
map=new HashMap();
map.put("seriesTitle","上海");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*2*10));
map.put("lineTitle","上海股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","南京");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*3*10));
map.put("lineTitle","南京股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","北京");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*4*10));
map.put("lineTitle","北京股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","西安");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*5*10));
map.put("lineTitle","西安股价");
map.put("endLine",k*3+"号");
map.put("grpType","curve");
list.add(map);
map=new HashMap();
map.put("seriesTitle","济南");
map.put("itemTitle",i*3+"号");
map.put("itemValue",String.valueOf(i*6*10));
map.put("lineTitle","济南股价");
map.put("endLine",k*3+"号");
map.put("grpType","column");
list.add(map);
}
request.setAttribute("data",list);
%>
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY >
<table width="100%">
<tr>
<td><label class="title">图表组件</label></td>
<% String file=request.getServletPath().substring(1);
String app=request.getContextPath();
%>
<td><label class="title">url:<%=file%></label></td>
<td align="right" valign="bottom" nowrap> [<a href="<%=app%>/src.jsp?target=<%=file %>" target="source">源代码</a>] [<a href="xmldef.xml" target="xmldef">说明文档</a>] </td>
</tr>
</table>
<hr>
<FORM>
<graph:chart title="全国国民生产总值比较" type="pie:column3d:lines:eventgrp:mixgrp:3dbar:curve:pie3d:stack3d:barstack3d" width="100%" height="100%" displayTitle="true" linePoint="false" defaultRow="1" newLine="true" graphTitle="value" Position="top" xxName="日期" yyName="生产总值" Xy="true">
<graph:data seriesTitle="seriesTitle" grpType="grpType" collection="data" itemTitle="itemTitle" itemValue="itemValue" lineTitle="lineTitle" endLine="endLine">
</graph:data>
</graph:chart>
</FORM>
</BODY>
</HTML>
<script>
var id=setTimeout("showChart('pie')",1000);
</script>