mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 17:26:55 +08:00
feat: pie chat to display labels & tooltip with percent value
This commit is contained in:
@@ -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 ? '%' : ''}` }
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user