feat: pie chat to display labels & tooltip with percent value

This commit is contained in:
ulleo
2025-07-08 18:46:26 +08:00
parent f7665d8c43
commit 08fe710b8c
@@ -57,7 +57,7 @@ export class Pie extends BaseG2Chart {
},
],
tooltip: (data) => {
return { name: y[0].name, value: data[y[0].value] }
return { name: y[0].name, value: `${data[y[0].value]}${isPercent ? '%' : ''}` }
},
}