From 64feec226335945e97bf8b3614cf46b8fc1fc533 Mon Sep 17 00:00:00 2001
From: zhangzhang <1747194829@qq.com>
Date: Mon, 11 Mar 2024 10:29:28 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9B=BE=E4=BE=8B=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/composeFeatures/assets/charts.js | 5 ++++-
.../components/crowding/assets/charts.js | 5 ++++-
.../components/saturationMax/assets/charts.js | 5 ++++-
.../trafficIndicators/assets/charts.js | 3 +++
.../trafficIndicators/assets/chartsRadar.js | 16 ++++++++--------
5 files changed, 23 insertions(+), 11 deletions(-)
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 9ca5c810..c9b4d618 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
@@ -11,6 +11,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
+ valueFormatter: function (value) {
+ return value + " 指标";
+ },
},
xAxis: {
type: "category",
@@ -44,7 +47,7 @@ var options = {
},
yAxis: {
type: "value",
- name: '(指标)',
+ name: "(指标)",
nameTextStyle: {
color: "#fff",
fontSize: 10,
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 7696e28c..47104b29 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
@@ -11,6 +11,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
+ valueFormatter: function (value) {
+ return value + " 指标";
+ },
},
xAxis: {
type: "category",
@@ -44,7 +47,7 @@ var options = {
},
yAxis: {
type: "value",
- name: '(指标)',
+ name: "(指标)",
nameTextStyle: {
color: "#fff",
fontSize: 10,
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 f04430e7..168648d2 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
@@ -4,6 +4,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
+ valueFormatter: function (value) {
+ return value + " 指标";
+ },
},
grid: {
left: "2px",
@@ -45,7 +48,7 @@ var options = {
},
yAxis: {
type: "value",
- name: '(指标)',
+ name: "(指标)",
nameTextStyle: {
color: "#fff",
fontSize: 10,
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 316af6d6..0eacaff7 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
@@ -62,6 +62,9 @@ var options = {
tooltip: {
show: true,
trigger: "axis",
+ valueFormatter: function (value) {
+ return value + " 指标";
+ },
},
legend: {
// orient: 'vertical',
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js
index 8cdbbc06..df7684bf 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/trafficSituation/components/IndicatorAnalysis/components/trafficIndicators/assets/chartsRadar.js
@@ -1,4 +1,4 @@
-window.radarData = {'交通特征':9,'拥挤度':8,'饱和度':5,}
+window.radarData = { 交通特征: 9, 拥挤度: 8, 饱和度: 5 };
let options = {
legend: {
@@ -8,15 +8,15 @@ let options = {
trigger: "item",
formatter: function (params) {
let data = params.data;
- return `交通特征: ${data.value[0]}
拥挤度: ${data.value[1]}
饱和度: ${data.value[2]}`;
+ return `交通特征: ${data.value[0]} 指标
拥挤度: ${data.value[1]} 指标
饱和度: ${data.value[2]} 指标`;
},
},
radar: [
{
indicator: [
- { name: "交通特征",max: 10 },
- { name: "拥挤度" ,max: 10},
- { name: "饱和度",max: 10 },
+ { name: "交通特征", max: 10 },
+ { name: "拥挤度", max: 10 },
+ { name: "饱和度", max: 10 },
],
center: ["50%", "55%"],
radius: 70,
@@ -25,8 +25,8 @@ let options = {
shape: "circle",
axisName: {
formatter: function (value) {
- return value + ' '+ (radarData[value] / 10 * 100) + "%";
- },
+ return value + " " + (radarData[value] / 10) * 100 + "%";
+ },
color: "#fff",
},
splitArea: {
@@ -55,7 +55,7 @@ let options = {
},
data: [
{
- value: [9,8,5],
+ value: [9, 8, 5],
name: "月指标",
areaStyle: {
color: {