diff --git a/src/views/energy/analysis/contrastAnalysis/components/barChart.vue b/src/views/energy/analysis/contrastAnalysis/components/barChart.vue
index 943c5a36..075996b6 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/barChart.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/barChart.vue
@@ -97,6 +97,22 @@ export default {
trigger: 'axis',
axisPointer: {
type: 'shadow'
+ },
+ formatter: function(params) {
+ return (
+ params[0].axisValue +
+ `
` +
+ params.map((item) => {
+ let str = ``
+ let seriesNameStr = `${item.seriesName}`
+ let value = item.value ? item.value : '-'
+ let valueStr = `${value}`
+ return `
+ ${str}${seriesNameStr}
+ ${valueStr}
+ `
+ }).join(``)
+ )
}
},
grid: {
@@ -106,7 +122,11 @@ export default {
containLabel: true
},
legend: {
- data: legendData
+ data: legendData,
+ right: '1%',
+ icon: 'rect',
+ itemHeight: 8,
+ itemWidth: 8
},
xAxis: {
type: 'category',
diff --git a/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue b/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue
index ae958da9..b1cc088e 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/lineChart.vue
@@ -103,7 +103,8 @@ export default {
containLabel: true
},
legend: {
- data: legendData
+ data: legendData,
+ right: '1%'
},
xAxis: {
type: 'category',
diff --git a/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue b/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
index 4d7d48ea..4370bfec 100644
--- a/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/contrastAnalysis/components/searchArea.vue
@@ -425,7 +425,7 @@ export default {
}
}
-
-
-
-
\ No newline at end of file
diff --git a/src/views/energy/analysis/trendAnalysis/components/barChart.vue b/src/views/energy/analysis/trendAnalysis/components/barChart.vue
index f777a64f..4b4e91b9 100644
--- a/src/views/energy/analysis/trendAnalysis/components/barChart.vue
+++ b/src/views/energy/analysis/trendAnalysis/components/barChart.vue
@@ -68,12 +68,6 @@ export default {
}
var option = {
color:['#288AFF'],
- tooltip: {
- trigger: 'axis',
- axisPointer: {
- type: 'shadow'
- }
- },
grid: {
left: '4%',
right: '1%',
diff --git a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue
index bb403169..82c8c900 100644
--- a/src/views/energy/analysis/trendAnalysis/components/lineChart.vue
+++ b/src/views/energy/analysis/trendAnalysis/components/lineChart.vue
@@ -70,9 +70,9 @@ export default {
var option = {
color:['#288AFF'],
- tooltip: {
- trigger: 'axis'
- },
+ // tooltip: {
+ // trigger: 'axis'
+ // },
grid: {
left: '4%',
right: '1%',
diff --git a/src/views/energy/analysis/trendAnalysis/components/searchArea.vue b/src/views/energy/analysis/trendAnalysis/components/searchArea.vue
index 67842ab3..22262036 100644
--- a/src/views/energy/analysis/trendAnalysis/components/searchArea.vue
+++ b/src/views/energy/analysis/trendAnalysis/components/searchArea.vue
@@ -385,7 +385,7 @@ export default {
}
}
-
-
-
\ No newline at end of file
diff --git a/src/views/energy/analysis/yoyAnalysis/index.vue b/src/views/energy/analysis/yoyAnalysis/index.vue
index 670c2563..2b098f03 100644
--- a/src/views/energy/analysis/yoyAnalysis/index.vue
+++ b/src/views/energy/analysis/yoyAnalysis/index.vue
@@ -3,6 +3,7 @@