|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
pageEncoding="UTF-8"%>
|
|
|
pageEncoding="UTF-8"%>
|
|
|
|
|
|
<%
|
|
|
String path = request.getContextPath();
|
...
|
...
|
@@ -19,16 +19,31 @@ |
|
|
<div class="widget-title">
|
|
|
<h5>Redis监控</h5>
|
|
|
</div>
|
|
|
<div class="widget-content nopadding">
|
|
|
<script type="text/javascript" src="<%=basePath %>/js/charts/DragNode3.js" ></script>
|
|
|
<div id="chartdiv" align="center" style="width:800px;">
|
|
|
FusionCharts.
|
|
|
</div>
|
|
|
<div class="widget-content nopadding" id="charDiv">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div id="testDiv"></div>
|
|
|
<script type="text/javascript">
|
|
|
var chart = new FusionCharts("<%=basePath %>/js/charts/DragNode.swf", "ChartId", "1650", "650", "0");
|
|
|
chart.setXMLData(dataString );
|
|
|
chart.render("chartdiv");
|
|
|
$.ajax({
|
|
|
url: contextPath + "/redisInfo/getRedisInfo",
|
|
|
type: 'post',
|
|
|
async: false,
|
|
|
dataType: "json",
|
|
|
success: function (data) {
|
|
|
if(data.data!=null&&data.data!=''){
|
|
|
$.each(data.data, function (n, value) {
|
|
|
var idDiv="chartdiv"+n;
|
|
|
$("#charDiv").prepend('<div id="'+idDiv+'" align="center" style="width:600px;">FusionCharts. </div>');
|
|
|
var chart0 = new FusionCharts("<%=basePath %>/js/charts/DragNode.swf", "ChartId", "1200", "650", "0");
|
|
|
chart0.setXMLData(value);
|
|
|
chart0.render(idDiv);
|
|
|
|
|
|
});
|
|
|
}else{
|
|
|
alert("数据加载失败!");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|