mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(图表): 修复仪表板页面导出PDF以及图片,最值标签显示空白 的问题 #15093
This commit is contained in:
committed by
jianneng-fit2cloud
parent
c6f0e8313b
commit
9552ae5f19
@@ -79,7 +79,8 @@ function createExtremumDiv(id, value, formatterCfg, chart) {
|
||||
transform: translateX(-50%);
|
||||
opacity: 1;
|
||||
transition: opacity 0.2s ease-in-out;
|
||||
white-space:nowrap;`
|
||||
white-space:nowrap;
|
||||
overflow:auto;`
|
||||
)
|
||||
div.textContent = valueFormatter(value, formatterCfg)
|
||||
const span = document.createElement('span')
|
||||
@@ -223,6 +224,7 @@ export const createExtremumPoint = (chart, ev) => {
|
||||
divParent.style.zIndex = '1'
|
||||
divParent.style.opacity = '0'
|
||||
divParent.style.transition = 'opacity 0.2s ease-in-out'
|
||||
divParent.style.overflow = 'visible'
|
||||
// 将父标注加入到图表中
|
||||
const containerElement = document.getElementById(chart.container)
|
||||
containerElement.insertBefore(divParent, containerElement.firstChild)
|
||||
|
||||
Reference in New Issue
Block a user