diff --git a/src/hot-map/framework.ts b/src/hot-map/framework.ts index bfaa7bc..3a63a8d 100644 --- a/src/hot-map/framework.ts +++ b/src/hot-map/framework.ts @@ -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,