bug271
This commit is contained in:
parent
17749b6df6
commit
cc36886687
|
@ -162,6 +162,19 @@
|
||||||
let myChart = echarts.init(chartDom)
|
let myChart = echarts.init(chartDom)
|
||||||
let option
|
let option
|
||||||
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: {
|
grid: {
|
||||||
top: '10%',
|
top: '10%',
|
||||||
left: '0%',
|
left: '0%',
|
||||||
|
|
Loading…
Reference in New Issue