conn
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<%@ include file="../admin/top.jsp"%>
<script type="text/javascript">
$(top.hangge());
</script>
</head>
<body>
<!-- 为ECharts准备一个具备大小(宽高)的Dom -->
<div id="main" style="min-width: 700px; min-height: 500px;"></div> <script type="text/javascript">
var myChart;
myChart = echarts.init(document.getElementById('main')); var legendDate = "";
var series = "";
var ser = "";
var legend = "";
var option = {};
$.ajax({
type : "post",
async : false, //同步执行
url : "",
dataType : "json", //返回数据形式为json
success : function(result) { },
error : function(errorMsg) {
legendDate = [ "2014", "2015", "2016" ];
series = [ {
"name" : "2014",
"type" : "bar",
"data" : [ 51, 2, 43 ],
"len" : "中国"
}, {
"name" : "2015",
"type" : "bar",
"data" : [ 55, 36, 4 ],
"len" : "美国"
}, {
"name" : "2016",
"type" : "bar",
"data" : [ 5, 20, 40 ],
"len" : "英国"
} ];
ser = [ {
"name" : "2014",
"type" : "bar",
"data" : [ 51, 2, 43 ]
}, {
"name" : "2015",
"type" : "bar",
"data" : [ 55, 36, 4 ]
}, {
"name" : "2016",
"type" : "bar",
"data" : [ 5, 20, 40 ]
} ];
legend = [ "中国", "美国", "德国" ];
optionSeries();
for (i = 0; series.length > i; i++) {
option.series[i] = series[i];
} }
}); function optionSeries() { option = {
title : {
text : '性能数据采集入库效率趋势图',
left : '15'
},
tooltip : {
trigger : 'axis',
axisPointer : {
type : 'shadow'
}
},
legend : {
data : legendDate
},
dataZoom : {
show : true,
realtime : true,
start : 50,
end : 100
},
xAxis : {
type : 'value',
boundaryGap : [ 0, 0.01 ]
},
yAxis : {
type : 'category',
data : legend
},
series : []
};
} //通过Ajax获取数据 myChart.setOption(option);
window.onresize = myChart.resize;
</script>
</body>
</html>
conn的更多相关文章
- C# conn.open() 外部表不是预期的格式( 读取EXCEL文件出错)
环境:win7+iis7+Office2007 在asp.net网站中导出Excel文件后,再把文件导入到数据库中. 读取Excel文件时,打开连接出错. 错误为:外部表不是预期的格式 解决:检查了一 ...
- Provider 错误 '80004005' 未指定的错误 /conn.asp,行 23
网站本来正常,由于网站修改了title标签的内容,想要百度快照快点更新. 就自己提交快照.在下面网站: http://zhanzhang.baidu.com/sitesubmit/index 提交UR ...
- 用WIN7系统IIS的提示:数据库连接出错,请检查Conn.asp文件中的数据库参数设置
我用科讯的从4.0开始,去年开始很少用科讯做新站了,今天拿来做一下,结果悲剧了,数据库路径老是不对,百度一番又一番的,,最后终于给度娘解决了.分享出来给遇到同样的问题的人. 用WIN7系统IIS的注意 ...
- purgeIdleCellConnections: found one to purge conn = 0x1e09f7d0
purgeIdleCellConnections: found one to purge conn = 0x1e09f7d0 你在iOS6下使用3G网络时可能会遇到这条log,不用紧张,这只是苹果的工 ...
- conn,stmt,rset 的关闭(规范)
Connection conn = null; Statement stmt = null; ResultSet rset = null; try { conn = dataSource.getCon ...
- rs.open 打开数据库权限问题 rs.open sql,conn,1,3 等后缀权限问题
Rs.open sql,conn,[0~3],[1~4] 这两个是游标,具体的作用是:RS.OPEN SQL,CONN,A,BA:ADOPENFORWARDONLY(=0)只读,且当前数据记录只能向下 ...
- rs.open sql,conn,3,1中3,1代表什么
RecordSet中的open完全的语法是 SecordSet.Open Source,ActiveConnection,CursorType,LockType,Options 例如: rs.open ...
- MongoDB ‘conn’Mongo 对象远程代码执行漏洞
漏洞名称: MongoDB ‘conn’Mongo 对象远程代码执行漏洞 CNNVD编号: CNNVD-201307-497 发布时间: 2013-07-25 更新时间: 2013-07-25 危害等 ...
- 数据库连接未关闭,conn与rs未关闭
场景: 2000多人使用系统,早上打卡签到,时间点比较集中. 程序:会创建connction连接.但是未关闭,导致tomcat挂了.导致连接池已满 解决:conn.close,rs.close.记住一 ...
- ERROR<53761> - Plugins - conn=-1 op=-1 msgId=-1 - Connection Bind through PTA failed (91). Retrying...
LDAP6.3在DSCC控制台启动实例完成,但是操作状态显示“意外错误”,查看日志如下: 04/May/2016:21:10:39 +0800] - Sun-Java(tm)-System-Direc ...
随机推荐
- php 对二维数组的某个字段公用排序的方法
function array_sort($arr ,$keys,$order=0){ if(!is_array($arr)){ return false; } $keysvalue=array(); ...
- python开发_python代码风格(coding style)
我们要做python开发,我想python中的代码风格我们有必要了解一下 这样对我们自己和他们所编写的代码都有好处的. 下面是8点重要代码风格注意事项: ONE : Use 4-space inden ...
- Codeforces Round #245 (Div. 2) C. Xor-tree DFS
C. Xor-tree Time Limit: 1 Sec Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/430/problem/C ...
- Scala入门:从HelloWorld开始【源码及编译】
最近在学习Scala语言,虽然还没有完全学通, 但是隐约可以体会到Scala的简洁和强大. 它既能让程序员使用函数式编程, 也提供了全面的面向对象编程. 在刚刚开始读<Scala编程>的时 ...
- centos安装pcre
安装pcre前需要已安装gcc工具 1.跳转下载目录 cd install-file 2.下载pcre wget ftp://ftp.csx.cam.ac.uk/pub/software/progra ...
- HDU 4579 Random Walk (解方程组)
Random Walk Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 65535/65536 K (Java/Others)Total ...
- HDU 1171 Big Event in HDU (多重背包变形)
Big Event in HDU Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others ...
- mysql 实验
http://yangyaru0108.blog.51cto.com/6616699/1205001
- cocos3.0使用cocostudio动画帧结合地图对象键值创建精灵动画
内容例如以下: #include "cocos2d.h" #include "cocostudio/CocoStudio.h" //精灵猫和其它精灵的tag t ...
- Eclipse修改svn地址
版权声明:本文为博主原创文章,未经博主允许不得转载. Eclipse修改svn地址 SVN地址变更后 需要重定向 步骤有3 : 1 ) 打开eclipse中SVN资源库 在Eclipse中选择Wi ...