diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js index 7d527476..9fc6cb10 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/changesIndicators/assets/charts3.js @@ -19,19 +19,8 @@ let data2 = [120, 340, 750, 600, 400, 700, 900, 200, 540, 320, 370, 500]; let data3 = [200, 530, 920, 400, 600, 700, 300, 800, 900, 120, 570, 800]; let options = { tooltip: { - show: false, - trigger: "axis", - axisPointer: { - // 坐标轴指示器,坐标轴触发有效 - type: "shadow", // 默认为直线,可选为:'line' | 'shadow' - }, - textStyle: { - color: "#fff", - fontSize: 14, - }, - // backgroundColor: "rgba(3, 31, 71, .0)", //设置背景颜色 - // borderColor: "rgba(3, 31, 71, .0)", - formatter: "健康监测
{b1}:{c1}人", + show: true, + trigger: "item", }, grid: { left: 0, @@ -183,7 +172,7 @@ let options = { data: data2, }, { - name: "", + name: null, type: "scatter", emphasis: { scale: false, @@ -204,6 +193,9 @@ let options = { left: "-100%", data: data2, animationDelay: 100, + tooltip: { + show: false, + }, }, // 下半截柱状图linear-gradient(180deg, #61D8FF 0%, #003B4E 100%); linear-gradient(180deg, #06D7B1 0%, #003B4E 100%) { @@ -288,6 +280,9 @@ let options = { left: 10, data: data1, animationDelay: 500, + tooltip: { + show: false, + }, }, { name: "拥挤度", @@ -369,6 +364,9 @@ let options = { left: "-100%", data: data2, animationDelay: 100, + tooltip: { + show: false, + }, }, ], }; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js index f0de8f5a..e4ed44c1 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/composeFeatures/assets/charts.js @@ -3,35 +3,19 @@ var options = { color: ["#07A3FB"], grid: { left: "0%", - right: "0%", + right: "8%", bottom: "0%", top: "10%", containLabel: true, }, - legend: { - show: false, - icon: "rect", - top: "0%", - right: "5%", - data: ["实时数据"], - itemWidth: 18, - itemHeight: 5, - itemGap: 30, - itemStyle: { - color: "#FFD15C", - }, - textStyle: { - fontSize: 10, - color: "#fff", - padding: [0, 0, 0, 10], - }, + tooltip: { + show: true, }, xAxis: { type: "category", axisLine: { lineStyle: { color: "#07A3FB", - fontSize: 10, }, }, axisLabel: { @@ -59,9 +43,6 @@ var options = { }, yAxis: { type: "value", - min: 0, - max: 800, - minInterval: 100, nameTextStyle: { fontSize: 10, color: "#fff", @@ -73,13 +54,6 @@ var options = { // type: 'dashed', // dotted 虚线 }, }, - splitArea: { show: false }, - axisLine: { - show: false, - }, - axisTick: { - show: false, - }, axisLabel: { fontSize: 10, fontFamily: "Bebas", @@ -93,7 +67,7 @@ var options = { showSymbol: false, smooth: true, // 是否曲线 name: "实时数据", // 图例对应类别 - data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据 + data: [112, 122, 323, 223, 230, 112, 326, 228, 331, 423, 225, 123], // 纵坐标数据 lineStyle: { color: "#07A3FB", }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js index fad0f22a..e0eada52 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/crowding/assets/charts.js @@ -8,30 +8,14 @@ var options = { top: "10%", containLabel: true, }, - legend: { - show: false, - icon: "rect", - top: "0%", - right: "5%", - data: ["实时数据"], - itemWidth: 18, - itemHeight: 5, - itemGap: 30, - itemStyle: { - color: "#FFD15C", - }, - textStyle: { - fontSize: 10, - color: "#fff", - padding: [0, 0, 0, 10], - }, + tooltip: { + show: true, }, xAxis: { type: "category", axisLine: { lineStyle: { - color: "#fff", - fontSize: 10, + color: "#E29E37", }, }, axisLabel: { @@ -59,9 +43,6 @@ var options = { }, yAxis: { type: "value", - min: 0, - max: 800, - minInterval: 100, nameTextStyle: { fontSize: 10, color: "#fff", @@ -73,13 +54,6 @@ var options = { // type: 'dashed', // dotted 虚线 }, }, - splitArea: { show: false }, - axisLine: { - show: false, - }, - axisTick: { - show: false, - }, axisLabel: { fontSize: 10, fontFamily: "Bebas", @@ -93,7 +67,7 @@ var options = { showSymbol: false, smooth: true, // 是否曲线 name: "实时数据", // 图例对应类别 - data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据 + data: [112, 122, 323, 223, 230, 112, 326, 228, 331, 423, 225, 123], // 纵坐标数据 lineStyle: { color: "#E29E37", }, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js index d5f824f3..89e0c3ab 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/saturationMax/assets/charts.js @@ -1,6 +1,9 @@ import * as echarts from "echarts"; var options = { color: ["#32BB8A", "#01B3E4"], + tooltip: { + show: true, + }, grid: { left: "0%", right: "0%", @@ -8,30 +11,12 @@ var options = { top: "10%", containLabel: true, }, - legend: { - show: false, - icon: "rect", - top: "0%", - right: "5%", - data: ["实时数据"], - itemWidth: 18, - itemHeight: 5, - itemGap: 30, - itemStyle: { - color: "#FFD15C", - }, - textStyle: { - fontSize: 10, - color: "#fff", - padding: [0, 0, 0, 10], - }, - }, + xAxis: { type: "category", axisLine: { lineStyle: { - color: "#fff", - fontSize: 10, + color: "#32BB8A", }, }, axisLabel: { @@ -59,27 +44,12 @@ var options = { }, yAxis: { type: "value", - min: 0, - max: 800, - minInterval: 100, - nameTextStyle: { - fontSize: 10, - color: "#fff", - align: "center", - }, splitLine: { lineStyle: { color: "#32BB8A", // type: 'dashed', // dotted 虚线 }, }, - splitArea: { show: false }, - axisLine: { - show: false, - }, - axisTick: { - show: false, - }, axisLabel: { fontSize: 10, fontFamily: "Bebas", @@ -92,8 +62,8 @@ var options = { // symbol: "none", showSymbol: false, smooth: true, // 是否曲线 - name: "实时数据", // 图例对应类别 - data: [112, 122, 723, 623, 530, 612, 626, 728, 531, 423, 625, 423, 423], // 纵坐标数据 + name: "", // 图例对应类别 + data: [112, 122, 323, 223, 230, 112, 326, 228, 331, 423, 225, 123], // 纵坐标数据 lineStyle: { color: "#32BB8A", }, @@ -128,6 +98,9 @@ var options = { ], }, }, + tooltip: { + show: true, + }, }, ], }; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js index 0169b1ce..a1afc8a7 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts.js @@ -59,6 +59,9 @@ nameList.map((item, index) => { }); var options = { + tooltip: { + show: true, + }, legend: { // orient: 'vertical', icon: "circle", @@ -78,7 +81,6 @@ var options = { containLabel: true, }, xAxis: { - type: "category", data: nameList, axisTick: { show: false, //隐藏X轴刻度 @@ -99,9 +101,6 @@ var options = { { type: "value", name: "", - max: 1200, - min: 0, - splitNumber: 5, nameTextStyle: { color: "#fff", fontSize: 10, @@ -117,12 +116,6 @@ var options = { // return yList[index] // } }, - axisLine: { - show: false, - }, - axisTick: { - show: false, - }, splitLine: { lineStyle: { color: "rgba(49, 217, 255, 0.5)", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js index e750558b..4e798482 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts2.js @@ -28,7 +28,7 @@ let data2 = [[60, 60, 65, 60, 70, 40, 80, 63]]; let options = { tooltip: { show: true, - trigger: "item", + // trigger: "item", formatter: (data) => { // console.log(data.seriesIndex); var tip = '' + data.seriesName + ""; diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts3.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts3.js index 5d621958..508b636c 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts3.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/charts3.js @@ -17,19 +17,19 @@ let xData = [ let data1 = [200, 530, 920, 400, 600, 700, 300, 800, 900, 120, 570, 800]; let options = { tooltip: { - show: false, - trigger: "axis", - axisPointer: { - // 坐标轴指示器,坐标轴触发有效 - type: "shadow", // 默认为直线,可选为:'line' | 'shadow' - }, - textStyle: { - color: "#fff", - fontSize: 14, - }, - backgroundColor: "rgba(3, 31, 71, .0)", //设置背景颜色 - borderColor: "rgba(3, 31, 71, .1)", - formatter: "健康监测
{b1}:{c1}人", + show: true, + // trigger: "axis", + // axisPointer: { + // // 坐标轴指示器,坐标轴触发有效 + // type: "shadow", // 默认为直线,可选为:'line' | 'shadow' + // }, + // textStyle: { + // color: "#fff", + // fontSize: 14, + // }, + // backgroundColor: "rgba(3, 31, 71, .0)", //设置背景颜色 + // borderColor: "rgba(3, 31, 71, .1)", + // formatter: "健康监测
{b1}:{c1}人", }, grid: { left: "2%", diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue index 5f5c64f8..7f03ac63 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/index.vue @@ -1,5 +1,5 @@