<!doctype html>
|
<html>
|
<head>
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
<script type="text/javascript">
|
var chartStr = '${chartJsonStr}';
|
$(function(){
|
initSplineStyle();
|
if(!$.util.isEmpty(chartStr)){
|
var chart = eval('('+'${chartJsonStr}'+')');
|
if(chart.nodata){
|
showNoDataWechat('pieChart');
|
}else{
|
showPieChart(chart);
|
}
|
}
|
|
$('.check').click(function(){
|
window.location.href='${base}/ewyw/stats/ewConfigStats/configSearchIndex.html?statsType=${RequestParameters.statsType}';
|
});
|
})
|
|
function showPieChart(data) {
|
$("#pieChart").highcharts({
|
chart: {
|
renderTo: 'pieChart',
|
height:350,
|
type: 'pie'
|
},
|
title: {
|
text: ''
|
},
|
tooltip: {
|
valueSuffix: '{point.percentage:.1f}%'
|
},
|
plotOptions: {
|
pie: {
|
showInLegend: true
|
}
|
},
|
series: [{
|
data: data.series
|
}]
|
});
|
}
|
|
</script>
|
</head>
|
|
<body>
|
<header class="kltit">
|
<label class="check"></label><a href="${base}/ewyw/stats/ewConfigStats/ewconfigStatsIndex.html"><span></span></a>配置信息分类统计
|
</header>
|
<div id="pieChart" class="chart_container_pie"></div>
|
</body>
|
</html>
|