Skip to content

Commit

Permalink
fix(HotMap): 修改label
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Rui committed Apr 12, 2024
1 parent 5992ec3 commit 46004f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hot-map/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,11 @@ export class HotMap extends BaseChart {
// shadowBlur: 2,
shadowColor: 'rgba(0, 0, 0)',
},
content: (val) => {
return `${formatPercent(val?.[zField] || 0)}`;
},
content:
shapeConfig?.content ||
((val) => {
return `${formatPercent(val?.[zField] || 0)}`;
}),
})
.style({
lineWidth: 1,
Expand Down

0 comments on commit 46004f2

Please sign in to comment.