grgw_old_java/heatsupply2/WebContent/webpage/modules/sys/staticAny.jsp

72 lines
2.5 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/webpage/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ECharts</title>
<!-- 引入 echarts.js -->
<%-- <script src="${ctxStatic }/echarts.js"></script> --%>
<!-- ECharts单文件引入 -->
<script src="${ctxStatic }/echarts-2.2.7/build/dist/echarts-all.js"></script>
</head>
<body>
<!-- 为ECharts准备一个具备大小宽高的Dom -->
<div id="main" style="height: 100%; min-height:170px;"></div>
<script type="text/javascript">
// 基于准备好的dom初始化echarts实例
var myChart = echarts.init(document.getElementById('main'));
var option = "";
option = {
tooltip : {
trigger: 'item',
formatter: "{b} <br> {c} ({d}%)"
},
calculable : true,
// legend: {
// orient : 'vertical',
// x : 'right',
// data:['正常处理情况','案件延时率情况','案件未处理情况','超时处理情况']
// },
color: ['#9370DB', '#3398DB','#FFA38E', '#80D8F8'],
series : [
{
// name: '数据信息',
type:'pie',
radius : ['50%', '70%'],
itemStyle : {
normal : {
label : {
show : false
},
labelLine : {
show : false
}
},
emphasis : {
label : {
show : true,
position : 'center',
textStyle : {
fontSize : '2',
fontWeight : 'bold'
}
}
}
},
data:[
{value:135, name:'正常处理情况'},
{value:234, name:'案件延时率情况'},
{value:335, name:'案件未处理情况'},
{value:310, name:'超时处理情况'}
]
}
]
};
// 使用刚指定的配置项和数据显示图表。
myChart.setOption(option);
</script>
</body>
</html>