⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chart.jsp

📁 Web开发的基本框架
💻 JSP
字号:
<%@ page contentType="text/html;charset=GBK" %>
<%@ taglib uri="/WEB-INF/web-graph.tld" prefix="graph" %>
<%@ taglib uri="/WEB-INF/web-date.tld" prefix="date"%>
<%@ taglib uri="/WEB-INF/web-loushang.tld" prefix="loushang"%>
<%@ page import="java.util.*" %>
<%@ taglib uri="/tags/web-i18n" prefix="web"%>
<web:js src="calendar.js"/>
<link rel="stylesheet" type="text/css" href="<loushang:ui css='css-xp1.css'/>">
<%
	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>&nbsp;[<a href="<%=app%>/src.jsp?target=<%=file %>" target="source">源代码</a>]&nbsp;</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" markPosition="top" xxName="日期" yyName="生产总值" markXy="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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -