Skip to content

Commit 92a852b

Browse files
Merge pull request dataease#11242 from dataease/pr@dev-v2@chart-extremum-null-fix
fix(图表): 修复显示最值,遇到空值时,左上角显示了空值标记的问题
2 parents 93973da + 64ba0bb commit 92a852b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/core-frontend/src/views/chart/components/js/extremumUitl.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ const getRgbaColorLastRgba = (rgbaString: string) => {
5252
}
5353

5454
function createExtremumDiv(id, value, formatterCfg, chartId) {
55+
// 空值不处理
56+
if (!value && value != 0) {
57+
return
58+
}
5559
// 装标注的div
5660
const parentElement = document.getElementById('point_' + chartId)
5761
if (parentElement) {

0 commit comments

Comments
 (0)