Ip top10 优化趋势图数据提示并添加缩放功能
This commit is contained in:
@@ -164,6 +164,7 @@ function showIpActiveChart(rs){
|
||||
var data=new Array();
|
||||
var xData=new Array();
|
||||
xData=rs[0].statTime;
|
||||
//var tickInterval=Math.ceil(xData.length/6);
|
||||
var series=new Array();
|
||||
$(rs).each(function(i, d) {
|
||||
series.push({
|
||||
@@ -172,9 +173,10 @@ function showIpActiveChart(rs){
|
||||
});
|
||||
})
|
||||
var chart = Highcharts.chart('chart', {
|
||||
/* chart:{
|
||||
type: 'area',
|
||||
}, */
|
||||
chart:{
|
||||
//type: 'area',
|
||||
zoomType: 'x'
|
||||
},
|
||||
exporting: {
|
||||
filename:'IP-Active',
|
||||
scale:1,
|
||||
@@ -195,13 +197,17 @@ function showIpActiveChart(rs){
|
||||
text: null
|
||||
},
|
||||
xAxis: {
|
||||
//tickInterval:tickInterval,
|
||||
type:'category',
|
||||
categories: xData,
|
||||
title: {
|
||||
text: 'time',
|
||||
align:'high',
|
||||
},
|
||||
},
|
||||
},
|
||||
tooltip: {
|
||||
pointFormat: '<b><spring:message code="ip"/>:</b>{series.name} <b><spring:message code="count"/>:</b>{point.y}<br/>'
|
||||
},
|
||||
yAxis: {
|
||||
title: {
|
||||
text: 'bytes'
|
||||
|
||||
Reference in New Issue
Block a user