diff --git a/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue b/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue index 738c850..2162dca 100644 --- a/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue +++ b/ruoyi-ui/src/views/dataStatistics/realtime/left-top.vue @@ -41,7 +41,29 @@ export default { id: "main", Xdata: [], Ydata: [], - option: {}, + option: { + tooltip: { + trigger: "axis", + axisPointer: { + type: "cross", + label: { + backgroundColor: "#6a7985", + }, + }, + formatter: function (params) { + return ( + `${params[0].name} +
+ ${params[0].marker} + 读数 + : + ${params[0].value} + mg/m³ + ` + ); + }, + }, + }, }, refreshDebounce: null, };