Commit 6e614d12 authored by liuna's avatar liuna

2018年1月27日 --智能分析平台

--实体厅流量监测页面时间轴修改
parent d5ff60a8
This diff is collapsed.
...@@ -252,6 +252,7 @@ ...@@ -252,6 +252,7 @@
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="${ctx}/static/js/echarts.min.js"></script> <script type="text/javascript" src="${ctx}/static/js/echarts.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){
...@@ -398,6 +399,9 @@ ...@@ -398,6 +399,9 @@
var df=new SimpleDateFormat(); var df=new SimpleDateFormat();
df.applyPattern("yyyy-MM-dd HH:mm:ss"); df.applyPattern("yyyy-MM-dd HH:mm:ss");
var sdf=new SimpleDateFormat();
sdf.applyPattern("HH");
function seatsActivenessChart(city,cityValue) { function seatsActivenessChart(city,cityValue) {
var myChart = echarts.init(document.getElementById('seatsActiveness')); var myChart = echarts.init(document.getElementById('seatsActiveness'));
var option = { var option = {
...@@ -542,10 +546,18 @@ ...@@ -542,10 +546,18 @@
}, },
xAxis:[ xAxis:[
{ {
type:'category', type: 'category',
data:time, data: time,
splitLine:{ splitLine: {
show:false show: false
},
axisLabel: {
show: true,
formatter: function (data,i) {
if(i%4==0){
return sdf.format(new Date(data));
}
},
}, },
} }
], ],
...@@ -648,6 +660,12 @@ ...@@ -648,6 +660,12 @@
tooltip : { tooltip : {
trigger: 'axis' trigger: 'axis'
}, },
grid:{
x:50,
y:20,
x2:0,
y2:20,
},
legend: { legend: {
data:['营业厅1','营业厅2','营业厅3','营业厅4','营业厅5'] data:['营业厅1','营业厅2','营业厅3','营业厅4','营业厅5']
}, },
...@@ -658,6 +676,15 @@ ...@@ -658,6 +676,15 @@
splitLine: { splitLine: {
show: false show: false
}, },
axisLabel: {
show: true,
interval:0,
formatter: function (data,i) {
if(i%4==0){
return sdf.format(new Date(data));
}
},
},
} }
], ],
yAxis:[ yAxis:[
...@@ -726,7 +753,15 @@ ...@@ -726,7 +753,15 @@
data: time, data: time,
splitLine: { splitLine: {
show: false show: false
},
axisLabel: {
show: true,
formatter: function (data,i) {
if(i%4==0){
return sdf.format(new Date(data));
} }
},
},
} }
], ],
yAxis:[ yAxis:[
...@@ -952,6 +987,12 @@ ...@@ -952,6 +987,12 @@
tooltip : { tooltip : {
trigger: 'axis' trigger: 'axis'
}, },
grid:{
x:50,
y:40,
x2:10,
y2:30,
},
legend: { legend: {
data:ipList, data:ipList,
}, },
...@@ -962,6 +1003,15 @@ ...@@ -962,6 +1003,15 @@
splitLine: { splitLine: {
show: false show: false
}, },
axisLabel: {
show: true,
interval:0,
formatter: function (data,i) {
if(i%4==0){
return sdf.format(new Date(data));
}
},
},
} }
], ],
yAxis:[ yAxis:[
...@@ -1319,6 +1369,7 @@ ...@@ -1319,6 +1369,7 @@
url: "${ctx}/MonitorOperation/FlowMonitor/ipBusiness", url: "${ctx}/MonitorOperation/FlowMonitor/ipBusiness",
async: false, async: false,
success: function(data){ success: function(data){
console.log("用户业务IP",data);
var cnt1 = new Array(); var cnt1 = new Array();
var cnt2 = new Array(); var cnt2 = new Array();
var cnt3 = new Array(); var cnt3 = new Array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment