gemercheung 2 years ago
parent
commit
c0a1d874c6
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/views/statistic/tab/tab1.vue

+ 14 - 2
src/views/statistic/tab/tab1.vue

@@ -175,8 +175,19 @@ const initOnlineChart = () => {
 
     // 绘制图表
     onlineTimeChart.setOption({
-      title: { text: '' },
-      tooltip: {},
+      tooltip: {
+        trigger: 'axis',
+        axisPointer: {
+          lineStyle: {
+            width: 1,
+            color: '#019680'
+          }
+        }
+      },
+      legend: {
+        orient: 'horizontal',
+        bottom: 0
+      },
       xAxis: {
         data: xAxis
       },
@@ -414,6 +425,7 @@ onMounted(async () => {
     //自适应大小
     onlineTimeChart.resize()
     roomUseVisitChart.resize()
+    roomMsgChart.resize()
   }
 })
 </script>