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