|
|
@ -4,15 +4,30 @@ let lc2 = [400, 550, 200, 140, 400, 550]; |
|
|
|
let options = { |
|
|
|
tooltip: { |
|
|
|
show: true, |
|
|
|
trigger: "axis", |
|
|
|
valueFormatter: function (value) { |
|
|
|
return value + " 起"; |
|
|
|
trigger: "item", |
|
|
|
formatter: function (params) { |
|
|
|
console.log(77, params.seriesName); |
|
|
|
// params.forEach((item) => {
|
|
|
|
// console.log(item);
|
|
|
|
// if (item.seriesName == "平均处置时长") {
|
|
|
|
// console.log(77, item.seriesName);
|
|
|
|
// return `<div>${item.marker} ${item.name} <span style="font-weight: bold;">${item.value} 分钟</span></div>`;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
if (params.seriesName == "平均处置时长") { |
|
|
|
console.log(77, params.seriesName); |
|
|
|
return `<div>${params.marker} ${params.name} <span style="font-weight: bold;">${params.value} 分钟</span></div>`; |
|
|
|
} else if (params.seriesName == "去年同期平均处置时长") { |
|
|
|
return `<div>${params.marker} ${params.name} <span style="font-weight: bold;">${params.value} 分钟</span></div>`; |
|
|
|
} else { |
|
|
|
return `<div>${params.marker} ${params.name} <span style="font-weight: bold;">${params.value} 起</span></div>`; |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
grid: { |
|
|
|
right: "4%", |
|
|
|
top: "90px", |
|
|
|
left: "2%", |
|
|
|
left: "30px", |
|
|
|
bottom: "0%", |
|
|
|
containLabel: true, |
|
|
|
}, |
|
|
@ -86,12 +101,12 @@ let options = { |
|
|
|
// formatter: "{value} °C",
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// axisLine: {
|
|
|
|
// show: false,
|
|
|
|
// },
|
|
|
|
// axisTick: {
|
|
|
|
// show: false,
|
|
|
|
// },
|
|
|
|
axisLine: { |
|
|
|
show: false, |
|
|
|
}, |
|
|
|
axisTick: { |
|
|
|
show: false, |
|
|
|
}, |
|
|
|
splitLine: { |
|
|
|
show: false, |
|
|
|
lineStyle: { |
|
|
@ -227,14 +242,14 @@ let options = { |
|
|
|
yAxisIndex: 1, |
|
|
|
data: lc2, |
|
|
|
type: "line", |
|
|
|
symbol: "none", |
|
|
|
symbolSize: 20, |
|
|
|
// symbol: "none",
|
|
|
|
symbolSize: 5, |
|
|
|
smooth: true, |
|
|
|
color: "#E2BA74", |
|
|
|
lineStyle: { |
|
|
|
color: "#E2BA74", |
|
|
|
width: 1, |
|
|
|
type: "dashed", |
|
|
|
// type: "dashed",
|
|
|
|
// dashOffset:50
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -243,14 +258,14 @@ let options = { |
|
|
|
yAxisIndex: 1, |
|
|
|
data: lc, |
|
|
|
type: "line", |
|
|
|
symbol: "none", |
|
|
|
symbolSize: 20, |
|
|
|
// symbol: "none",
|
|
|
|
symbolSize: 5, |
|
|
|
smooth: true, |
|
|
|
color: "#FB6D07", |
|
|
|
lineStyle: { |
|
|
|
color: "#FB6D07", |
|
|
|
width: 1, |
|
|
|
type: "dashed", |
|
|
|
// type: "dashed",
|
|
|
|
// dashOffset:50
|
|
|
|
}, |
|
|
|
}, |
|
|
|