diff --git a/src/components/Common/SmokeHandle/SmokeTrendChart/index.jsx b/src/components/Common/SmokeHandle/SmokeTrendChart/index.jsx index 95b8312..cd0dab3 100644 --- a/src/components/Common/SmokeHandle/SmokeTrendChart/index.jsx +++ b/src/components/Common/SmokeHandle/SmokeTrendChart/index.jsx @@ -106,7 +106,12 @@ function getOptions(source, period, trend) { if (trend[source].length === 0) return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], - grid: { top: 40, right: 12, bottom: 20, left: 56 }, + grid: { + top: 40, + right: 12, + bottom: 20, + left: source == "O2_float" ? 56 : 72, + }, xAxis: { type: "category", // data: Array(7) @@ -136,14 +141,14 @@ function getOptions(source, period, trend) { name: source == "O2_float" ? "单位:%" : "单位mg/m³", nameTextStyle: { color: "#fff", - fontSize: 16, + fontSize: 13, align: "right", }, type: "value", axisLabel: { color: "#fff", fontSize: 14, - formatter: "{value} %", + formatter: "{value}", }, axisLine: { show: true, @@ -162,7 +167,11 @@ function getOptions(source, period, trend) { }, series: [ { - data: trend[source].map((item) => !(item.value == null || isNaN(+item.value)) ? (+item.value).toFixed(2) : null), + data: trend[source].map((item) => + !(item.value == null || isNaN(+item.value)) + ? (+item.value).toFixed(2) + : null + ), type: "line", areaStyle: { color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ diff --git a/src/components/Modules/EnergyCostAnalysis/NO/index.jsx b/src/components/Modules/EnergyCostAnalysis/NO/index.jsx index 0fa3a04..106ba88 100644 --- a/src/components/Modules/EnergyCostAnalysis/NO/index.jsx +++ b/src/components/Modules/EnergyCostAnalysis/NO/index.jsx @@ -85,7 +85,7 @@ function getOptions(source, period, trend) { if (trend[source].length == 0) return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], - grid: { top: 40, right: 12, bottom: 20, left: 56 }, + grid: { top: 40, right: 12, bottom: 20, left: 64 }, xAxis: { type: "category", // data: Array(7) diff --git a/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx b/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx index b4618b7..3725446 100644 --- a/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx +++ b/src/components/Modules/EnergyCostAnalysis/NO2/index.jsx @@ -85,7 +85,7 @@ function getOptions(source, period, trend) { if (trend[source].length == 0) return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], - grid: { top: 40, right: 12, bottom: 20, left: 56 }, + grid: { top: 40, right: 12, bottom: 20, left: 64 }, xAxis: { type: "category", // data: Array(7) diff --git a/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx b/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx index 5c4ff06..0345a23 100644 --- a/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx +++ b/src/components/Modules/EnergyCostAnalysis/SO2/index.jsx @@ -84,7 +84,7 @@ function getOptions(source, period, trend) { if (trend[source].length == 0) return null; return { color: ["#FFD160", "#12FFF5", "#2760FF"], - grid: { top: 40, right: 12, bottom: 20, left: 56 }, + grid: { top: 40, right: 12, bottom: 20, left: 64 }, xAxis: { type: "category", // data: Array(7)