fix: 优化折线图效果

This commit is contained in:
chenjinsong
2023-02-03 16:26:46 +08:00
parent ec486fe930
commit 9205d7645d
4 changed files with 11 additions and 8 deletions

View File

@@ -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'
}

View File

@@ -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]),

View File

@@ -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'),

View File

@@ -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: {}