Update: fix percent charts bug (#122)
diff --git a/src/assets/lang/en.ts b/src/assets/lang/en.ts
index 56e431c..3420a3d 100644
--- a/src/assets/lang/en.ts
+++ b/src/assets/lang/en.ts
@@ -93,6 +93,7 @@
weekCutTip: 'Last 1 week',
monthCutTip: 'Last 1 month',
serverZone: 'Server Zone',
+ percentResponse: 'Percent Response',
};
export default m;
diff --git a/src/assets/lang/zh.ts b/src/assets/lang/zh.ts
index 2304d0b..00c0c47 100644
--- a/src/assets/lang/zh.ts
+++ b/src/assets/lang/zh.ts
@@ -93,6 +93,7 @@
weekCutTip: '最近1周',
monthCutTip: '最近1月',
serverZone: '服务器时区',
+ percentResponse: '百分比响应',
};
export default m;
diff --git a/src/views/components/dashboard/charts/chart-line.vue b/src/views/components/dashboard/charts/chart-line.vue
index 22ce661..aec54e1 100644
--- a/src/views/components/dashboard/charts/chart-line.vue
+++ b/src/views/components/dashboard/charts/chart-line.vue
@@ -42,7 +42,6 @@
type: 'line',
symbol: 'none',
barMaxWidth: 10,
- stack: '总量',
lineStyle: {
width: 1.5,
type: keys.length !== 5 ? 'solid' : 'dotted',
diff --git a/src/views/components/topology/topo-response.vue b/src/views/components/topology/topo-response.vue
index 3063f12..49c5fca 100644
--- a/src/views/components/topology/topo-response.vue
+++ b/src/views/components/topology/topo-response.vue
@@ -18,7 +18,7 @@
<template>
<div>
<div class="grey sm mb-5">{{title}}</div>
- <RkEcharts height="80px" :option="responseConfig"/>
+ <RkEcharts height="120px" :option="responseConfig"/>
</div>
</template>
@@ -41,8 +41,6 @@
name: this.data.p50.length ? 'p50' : null,
type: 'line',
symbol: 'none',
- barMaxWidth: 10,
- stack: '总量',
lineStyle: {
width: 1.5,
type: 'dotted',
@@ -59,8 +57,6 @@
name: this.data.p75.length ? 'p75' : null,
type: 'line',
symbol: 'none',
- barMaxWidth: 10,
- stack: '总量',
lineStyle: {
width: 1.5,
type: 'dotted',
@@ -77,8 +73,6 @@
name: this.data.p90.length ? 'p90' : null,
type: 'line',
symbol: 'none',
- barMaxWidth: 10,
- stack: '总量',
lineStyle: {
width: 1.5,
type: 'dotted',
@@ -95,8 +89,6 @@
name: this.data.p95.length ? 'p95' : null,
type: 'line',
symbol: 'none',
- barMaxWidth: 10,
- stack: '总量',
lineStyle: {
width: 1.5,
type: 'dotted',
@@ -112,9 +104,7 @@
]),
name: this.data.p99.length ? 'p99' : null,
type: 'line',
- barMaxWidth: 10,
symbol: 'none',
- stack: '总量',
lineStyle: {
width: 1.5,
type: 'dotted',