Skip to content

Commit

Permalink
fix(HotMap): 修改自定义legend
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang Rui committed Apr 12, 2024
1 parent 46004f2 commit 3671b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hot-map/framework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class HotMap extends BaseChart {
const { source } = (data || {}) as any;

if (!isEmpty(source) && source?.length >= 1) {
config.legend = {
config.legend = config.legend || {
position: 'bottom-left',
label: {
formatter: (text: any) => `${formatPercent(text || 0)}`,
Expand Down

0 comments on commit 3671b99

Please sign in to comment.