Skip to content

Commit 08fe710

Browse files
committed
feat: pie chat to display labels & tooltip with percent value
1 parent f7665d8 commit 08fe710

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/views/chat/component/charts

1 file changed

+1
-1
lines changed

frontend/src/views/chat/component/charts/Pie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class Pie extends BaseG2Chart {
5757
},
5858
],
5959
tooltip: (data) => {
60-
return { name: y[0].name, value: data[y[0].value] }
60+
return { name: y[0].name, value: `${data[y[0].value]}${isPercent ? '%' : ''}` }
6161
},
6262
}
6363

0 commit comments

Comments
 (0)