修改 流量统计时间格式 ,区域图改成折线图

This commit is contained in:
zhanghongqing
2018-12-12 17:11:29 +08:00
parent 4a36dc08e7
commit a3eefdfd2f
3 changed files with 14 additions and 14 deletions

View File

@@ -52,9 +52,9 @@ function showActionTransChart(rs){
});
})
var chart = Highcharts.chart('chart', {
chart:{
/* chart:{
type: 'area',
},
}, */
exporting: {
filename:'Action-Trans',
scale:1,
@@ -80,7 +80,7 @@ function showActionTransChart(rs){
credits:{//是否有highcharts水印
enabled:false
},
plotOptions: {
/* plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
@@ -90,7 +90,7 @@ function showActionTransChart(rs){
lineColor: '#666666'
}
}
},
}, */
// legend: {
// layout: 'vertical',
// align: 'right',

View File

@@ -112,6 +112,7 @@ $(document).ready(function(){
});
function searchList(){
loading();
var start=$("#beginDate").val();
var end=$("#endDate").val();
changeBandwidth($("#unitType").val(),start,end);
@@ -259,7 +260,7 @@ function showBandwidthChart(id,unitType,xdata,ydata,title){
var chart = Highcharts.chart(id, {
chart:{
type: 'area',
// type: 'area',
zoomType: 'x'
},
title: {
@@ -281,7 +282,6 @@ function showBandwidthChart(id,unitType,xdata,ydata,title){
title: {
text: unitType
},
tickmarkPlacement: 'on',
min:0
},
legend: {
@@ -289,10 +289,10 @@ function showBandwidthChart(id,unitType,xdata,ydata,title){
},
xAxis:{
type: 'datetime',
tickmarkPlacement: 'on',
// tickmarkPlacement: 'on',
dateTimeLabelFormats: {
millisecond: '%H:%M:%S.%L',
second: '%H:%M:%S',
second: '%H:%M',
minute: '%H:%M',
hour: '%H:%M',
day: '%m-%d',
@@ -309,7 +309,7 @@ function showBandwidthChart(id,unitType,xdata,ydata,title){
credits:{//是否有highcharts水印
enabled:false
},
plotOptions: {
/* plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
@@ -319,7 +319,7 @@ function showBandwidthChart(id,unitType,xdata,ydata,title){
lineColor: '#666666'
}
}
},
}, */
series: ydata,
});

View File

@@ -105,9 +105,9 @@ function showIpActiveChart(rs){
});
})
var chart = Highcharts.chart('chart', {
chart:{
/* chart:{
type: 'area',
},
}, */
exporting: {
filename:'IP-Active',
scale:1,
@@ -124,7 +124,7 @@ function showIpActiveChart(rs){
text: 'time',
align:'high',
},
plotOptions: {
/* plotOptions: {
area: {
stacking: 'normal',
lineColor: '#666666',
@@ -134,7 +134,7 @@ function showIpActiveChart(rs){
lineColor: '#666666'
}
}
},
}, */
// labels:{
// formatter:function(){
// if(this.value.length>15){