diff --git a/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp b/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp index b9e94f5..feb8664 100644 --- a/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp +++ b/WebRoot/page/detection/monitorData/inlineSwitchportMonitorInfo.jsp @@ -143,7 +143,7 @@ var policeValue; var xtilte=""; var ytitle=""; - + var metaName=""; function getPicScorce(metaid,drwTo){ var lns = ""; $(".checks:checked").each(function() { @@ -177,6 +177,7 @@ xtitle = datas[0].xtitle; ytitle = datas[0].ytitle; policeValue = datas[0].policeVal; + metaName = datas[0].metaName; var lines = datas[1].lines; seriesOptions = []; if(lines[0].data==null || lines[0].data.length==0){// 针对丢包数,仅显示一条折线 @@ -248,8 +249,8 @@ //startOfWeek: 50, labels : { rotation : 20, - y : 20, - x : 20 + y : 30, + x : 30 }, dateTimeLabelFormats: { second: '%Y-%m-%d %H:%M:%S', @@ -266,7 +267,35 @@ text : ytitle }, minorTickInterval: 'auto', - min:0, + labels: { + formatter:function(){ + if(metaName.endWith("speed")){ + if(0this.length) + return false; + if(this.substring(this.length-str.length)==str) + return true; + else + return false; + return true; + }