feat: update topo chart (#212)
diff --git a/src/views/components/topology/topo-aside.vue b/src/views/components/topology/topo-aside.vue
index 2e24222..a70a887 100644
--- a/src/views/components/topology/topo-aside.vue
+++ b/src/views/components/topology/topo-aside.vue
@@ -295,7 +295,7 @@
width: 280px;
z-index: 101;
color: #ddd;
- background-color: #252a2f9a;
+ background-color: #333;
padding: 15px 20px 10px;
.label{
display: inline-block;
diff --git a/src/views/components/topology/topo-chart.vue b/src/views/components/topology/topo-chart.vue
index 19516ef..88087be 100644
--- a/src/views/components/topology/topo-chart.vue
+++ b/src/views/components/topology/topo-chart.vue
@@ -19,7 +19,7 @@
<div>
<div class="grey sm mb-5">{{title}}</div>
<h5 class="mt-0 mb-0">{{content.toFixed(2)}} {{unit}}</h5>
- <RkEcharts height="32px" :option="responseConfig"/>
+ <RkEcharts height="100px" :option="responseConfig"/>
</div>
</template>
@@ -65,17 +65,20 @@
},
xAxis: {
type: 'category',
- axisTick: { show: false },
+ axisTick: {
+ lineStyle: { color: '#c1c5ca41' },
+ alignWithLabel: true,
+ },
splitLine: { show: false },
- axisLine: { show: false },
- axisLabel: { show: false },
+ axisLine: { lineStyle: { color: 'rgba(0,0,0,0)' } },
+ axisLabel: { color: '#9da5b2', fontSize: '11' },
},
yAxis: {
type: 'value',
axisLine: { show: false },
axisTick: { show: false },
- splitLine: { lineStyle: { color: '#c1c5ca08', type: 'dashed' } },
- axisLabel: { show: false },
+ splitLine: { lineStyle: { color: '#c1c5ca41', type: 'dashed' } },
+ axisLabel: { color: '#9da5b2', fontSize: '11' },
},
series: [
{