This commit is contained in:
851673013@qq.com 2022-06-29 09:46:02 +08:00
parent 17749b6df6
commit cc36886687
1 changed files with 13 additions and 0 deletions

View File

@ -162,6 +162,19 @@
let myChart = echarts.init(chartDom)
let option
option = {
tooltip: {
backgroundColor: 'rgba(17,61,116,0.8)',
borderWidth: 0,
trigger: 'axis',
formatter: function (val) {
console.log(val)
let res = `<div style="background:rgba(17,61,116,0.8);border:1px soild rgba(28,119,205,0.8);color:#fff;padding:0">
<span>日期 : ${val[0].name}</span>
<div style="margin-left: 18px">调用次数 : ${val[0].value}</div>
</div>`
return res
},
},
grid: {
top: '10%',
left: '0%',