fix: 优化折线图效果
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
var BASE_CONFIG = {
|
||||
baseUrl: 'http://192.168.44.54:8090/',
|
||||
baseUrl: 'http://192.168.44.54:8093/',
|
||||
version: '2.0.2021.05.11.19.43'
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ export default {
|
||||
? legendMapping[
|
||||
`${this.entity && this.entity.ip ? 'ip_' : ''}${r.legend}`
|
||||
]
|
||||
: (legendMapping[r.legend] ? legendMapping[r.legend] : humpToSpace(r.legend)),
|
||||
: (legendMapping[r.legend] ? legendMapping[r.legend] : r.legend),
|
||||
data: r.values.map((v) => [
|
||||
Number(v[0]) * 1000,
|
||||
Number(v[1]),
|
||||
|
||||
@@ -64,11 +64,11 @@ export const legendMapping = {
|
||||
ip_packets_sent_rate: i18n.global.t('trafficSummary.packetsPerSecondS2c'),
|
||||
dnsLatency: i18n.global.t('dns.latency'),
|
||||
queryRate: i18n.global.t('dns.query.rate'),
|
||||
formatErrorRate: i18n.global.t('dns.formatErrorRate'),
|
||||
serverFailureRate: i18n.global.t('dns.serverFailureRate'),
|
||||
nonExistentDomainRate: i18n.global.t('dns.nonExistentDomainRate'),
|
||||
notImplementedRate: i18n.global.t('dns.notImplementedRate'),
|
||||
queryRefusedRate: i18n.global.t('dns.queryRefusedRate'),
|
||||
formatErrorRate: 'FormErr',
|
||||
serverFailureRate: 'ServFail',
|
||||
nonExistentDomainRate: 'NXDomain',
|
||||
notImplementedRate: 'NotImp',
|
||||
queryRefusedRate: 'Refused',
|
||||
sequenceGapLossPercent: i18n.global.t('entity.ip.sequenceGapLossPercent'),
|
||||
establishLatency: i18n.global.t('entity.ip.establishLatency'),
|
||||
httpResponseLatency: i18n.global.t('entity.ip.httpResponseLatency'),
|
||||
|
||||
@@ -22,6 +22,9 @@ export const line = {
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
splitLine: {
|
||||
show: false
|
||||
},
|
||||
axisLabel: {
|
||||
formatter: function (value) {
|
||||
return unitConvert(value, unitTypes.number, null, null, 0).join(' ')
|
||||
@@ -62,7 +65,7 @@ export const line = {
|
||||
{
|
||||
name: '',
|
||||
type: 'line',
|
||||
smooth: false,
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
data: [],
|
||||
markLine: {}
|
||||
|
||||
Reference in New Issue
Block a user