删除统计-国家代理的菜单,统计页面-阻断和监测页面去掉图表的百分比显示和饼图的展示
This commit is contained in:
@@ -290,7 +290,7 @@
|
||||
<select id="chartType" name="chartType" class="selectpicker select2 input-small">
|
||||
<option value ="line"><spring:message code="line_chart"/></option>
|
||||
<option value ="column"><spring:message code="column_chart"/></option>
|
||||
<c:if test="${concent ne '3'}">
|
||||
<c:if test="${concent ne '2' and concent ne '3' }">
|
||||
<option value ="pie"><spring:message code="pie_chart"/></option>
|
||||
</c:if>
|
||||
</select>
|
||||
|
||||
@@ -143,33 +143,7 @@ function showActionTransChart(chartType,xData,series){
|
||||
}
|
||||
},
|
||||
showInLegend: true
|
||||
},
|
||||
column: {
|
||||
dataLabels:{
|
||||
enabled:true,
|
||||
color: '#5B5B5B',
|
||||
formatter:function () {
|
||||
var total=JSON.parse($("#total").val())[0];
|
||||
a = this.y/total*100;
|
||||
return a.toFixed(2) + "%"
|
||||
}
|
||||
}
|
||||
// colorByPoint: true
|
||||
},
|
||||
line: {
|
||||
allowPointSelect: true,
|
||||
cursor: 'pointer',
|
||||
dataLabels:{
|
||||
enabled:true,
|
||||
color: '#5B5B5B',
|
||||
formatter:function () {
|
||||
var total=JSON.parse($("#total").val())[0];
|
||||
a = this.y/total*100;
|
||||
return a.toFixed(2) + "%"
|
||||
}
|
||||
}
|
||||
// colorByPoint: true
|
||||
}
|
||||
}
|
||||
},
|
||||
series: series,
|
||||
}
|
||||
@@ -208,11 +182,6 @@ function showActionTransChart(chartType,xData,series){
|
||||
chart.tooltip.pointFormat = "{point.y}| <b>{point.percentage:.1f}%</br>";
|
||||
}else{
|
||||
chart.tooltip.pointFormat = "<span style='color:{point.color}'>\u25CF</span> {series.name}: <b>{point.y}</b><br/>";
|
||||
/* var a=JSON.parse($("#total").val())[0];
|
||||
chart.tooltip.pointFormat =function(){
|
||||
var b=this.y/a*100;
|
||||
return "<span style='color:{point.color}'>\u25CF</span> {series.name}: <b>"+b.toFixed(2)+"%</b><br/>";
|
||||
} */
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user