|
@@ -630,6 +630,20 @@
|
|
|
},
|
|
|
formatter: function (p) {
|
|
|
_param = p
|
|
|
+ let html = `<div style="line-height:20px;">`; // 行距控制
|
|
|
+ html += `<div style="font-weight:bold;margin-bottom:4px;">${p[0].axisValue}</div>`;
|
|
|
+
|
|
|
+ p.forEach(item => {
|
|
|
+ html += `
|
|
|
+ <div style="display:flex; justify-content:space-between; align-items:center;">
|
|
|
+ <span>${item.marker}${item.seriesName}</span>
|
|
|
+ <span style="margin-left:12px; text-align:right; min-width:80px;">${item.value}</span>
|
|
|
+ </div>
|
|
|
+ `;
|
|
|
+ });
|
|
|
+
|
|
|
+ html += `</div>`;
|
|
|
+ return html;
|
|
|
}
|
|
|
},
|
|
|
legend: {},
|