|
|
|
@ -294,8 +294,15 @@
|
|
|
|
|
var data2 = [];
|
|
|
|
|
var dataName1 = '';
|
|
|
|
|
var dataName2 = '';
|
|
|
|
|
var xLabelInterval = 0;
|
|
|
|
|
var sdate = Date.parse($('#sdate').val()) / 1000;
|
|
|
|
|
var edate = Date.parse($('#edate').val()) / 1000;
|
|
|
|
|
var chartBox = echarts.init(document.getElementById('chart_box'));
|
|
|
|
|
|
|
|
|
|
if ((edate - sdate) > 1555200) {
|
|
|
|
|
xLabelInterval = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (dataType) {
|
|
|
|
|
case 1:
|
|
|
|
|
data1 = roleNum;
|
|
|
|
@ -338,7 +345,7 @@
|
|
|
|
|
top: "13%",
|
|
|
|
|
containLabel: true
|
|
|
|
|
},
|
|
|
|
|
color: ["#72b332", '#35a9e0'],
|
|
|
|
|
color: ["#b32106", '#143f53'],
|
|
|
|
|
legend: {
|
|
|
|
|
data: [dataName1, dataName2],
|
|
|
|
|
show: true,
|
|
|
|
@ -377,7 +384,7 @@
|
|
|
|
|
color: "#808080"
|
|
|
|
|
},
|
|
|
|
|
alignWithLabel: true,
|
|
|
|
|
interval: 1,
|
|
|
|
|
interval: xLabelInterval,
|
|
|
|
|
},
|
|
|
|
|
axisLine: {
|
|
|
|
|
lineStyle: {
|
|
|
|
@ -416,14 +423,12 @@
|
|
|
|
|
name: dataName1,
|
|
|
|
|
type: 'line',
|
|
|
|
|
smooth: true,
|
|
|
|
|
symbol: 'circle',
|
|
|
|
|
data: data1
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: dataName2,
|
|
|
|
|
type: 'line',
|
|
|
|
|
smooth: true,
|
|
|
|
|
symbol: 'circle',
|
|
|
|
|
data: data2
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|