forked from github/dataease
Merge pull request #11242 from dataease/pr@dev-v2@chart-extremum-null-fix
fix(图表): 修复显示最值,遇到空值时,左上角显示了空值标记的问题
This commit is contained in:
commit
92a852bcbd
@ -52,6 +52,10 @@ const getRgbaColorLastRgba = (rgbaString: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createExtremumDiv(id, value, formatterCfg, chartId) {
|
function createExtremumDiv(id, value, formatterCfg, chartId) {
|
||||||
|
// 空值不处理
|
||||||
|
if (!value && value != 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
// 装标注的div
|
// 装标注的div
|
||||||
const parentElement = document.getElementById('point_' + chartId)
|
const parentElement = document.getElementById('point_' + chartId)
|
||||||
if (parentElement) {
|
if (parentElement) {
|
||||||
|
Loading…
Reference in New Issue
Block a user