|
@@ -74,6 +74,7 @@ export default {
|
|
|
`#00CA69`,
|
|
|
],
|
|
|
legend: {
|
|
|
+ selectedMode: false,
|
|
|
icon: `circle`,
|
|
|
top: `5%`,
|
|
|
right: `5%`,
|
|
@@ -95,6 +96,7 @@ export default {
|
|
|
type: `shadow`,
|
|
|
},
|
|
|
formatter: function (params) {
|
|
|
+ console.log(params)
|
|
|
const temMarkerStyle =
|
|
|
`display: inline-block; width: 14px; height: 14px;border-radius:14px; margin-right:3px; background-color: ` +
|
|
|
params[0].color +
|
|
@@ -105,11 +107,11 @@ export default {
|
|
|
`;`
|
|
|
if (params.length > 2) {
|
|
|
let name = `较上日`
|
|
|
- if (params[0].axisValue.length > 4) {
|
|
|
+ if (params[0].axisValue.length < 8) {
|
|
|
name = `较上月`
|
|
|
}
|
|
|
let name1 = `较上月`
|
|
|
- if (params[0].axisValue.length > 4) {
|
|
|
+ if (params[0].axisValue.length < 8) {
|
|
|
name1 = `较去年`
|
|
|
}
|
|
|
return [
|
|
@@ -158,7 +160,7 @@ export default {
|
|
|
type: `category`,
|
|
|
boundaryGap: true,
|
|
|
axisLabel: {
|
|
|
- formatter: `{value}`,
|
|
|
+ // formatter: `{value}`,
|
|
|
textStyle: {
|
|
|
color: `#c7d6f2`,
|
|
|
},
|
|
@@ -171,7 +173,6 @@ export default {
|
|
|
data: this.area,
|
|
|
},
|
|
|
yAxis: {
|
|
|
- max: 100,
|
|
|
type: `value`,
|
|
|
name: this.unit,
|
|
|
axisLabel: {
|