图表中攻击流量类型改为Line Area

This commit is contained in:
刘祥超
2021-07-27 09:51:47 +08:00
parent cbd312e67d
commit 02d08b0762
4 changed files with 11 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ Tea.context(function () {
attackRatio = Math.round(stats[index].attackBytes * 10000 / stats[index].bytes) / 100 attackRatio = Math.round(stats[index].attackBytes * 10000 / stats[index].bytes) / 100
} }
return stats[index].day + " " + stats[index].hour + "时<br/>总流量:" + teaweb.formatBytes(stats[index].bytes) + "<br/>缓存流量:" + teaweb.formatBytes(stats[index].cachedBytes) + "<br/>缓存命中率:" + cachedRatio + "%<br/>拦截攻击流量:" + teaweb.formatBytes(stats[index].attackBytes) + "<br/>拦截比例:" + attackRatio + "%" return stats[index].day + " " + stats[index].hour + "时<br/>总流量:" + teaweb.formatBytes(stats[index].bytes) + "<br/>缓存流量:" + teaweb.formatBytes(stats[index].cachedBytes) + "<br/>缓存命中率:" + cachedRatio + "%<br/>拦截攻击流量:" + teaweb.formatBytes(stats[index].attackBytes) + "<br/>拦截比例:" + attackRatio + "%"
}) })
} }
@@ -131,6 +131,9 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
areaStyle: {
color: "#F39494"
},
smooth: true smooth: true
} }
], ],
@@ -270,7 +273,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true

View File

@@ -177,7 +177,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true
@@ -319,7 +319,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true

View File

@@ -126,7 +126,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true
@@ -268,7 +268,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true

View File

@@ -139,7 +139,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true
@@ -281,7 +281,7 @@ Tea.context(function () {
itemStyle: { itemStyle: {
color: "#F39494" color: "#F39494"
}, },
lineStyle: { areaStyle: {
color: "#F39494" color: "#F39494"
}, },
smooth: true smooth: true