|
|
|
@ -10,19 +10,17 @@ export function lineOption () { |
|
|
|
return { |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|
axisPointer: { |
|
|
|
type: 'cross', |
|
|
|
label: { |
|
|
|
backgroundColor: '#6a7985' |
|
|
|
} |
|
|
|
}, |
|
|
|
// axisPointer: {
|
|
|
|
// type: 'cross',
|
|
|
|
// label: {
|
|
|
|
// backgroundColor: '#6a7985'
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
formatter: (params) => { |
|
|
|
console.log(params); |
|
|
|
return `<div style="padding: 5px 20px 5px 10px;">
|
|
|
|
<div>${params[0].axisValue}</div> |
|
|
|
|
|
|
|
<div><span style=\"display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#347EF5;\"></span>新增: ${params[0].value} 小时</div> |
|
|
|
|
|
|
|
<div> ${params[0].value}</div> |
|
|
|
</div>` |
|
|
|
} |
|
|
|
|
|
|
|
|