show percentage in pie chart instead of total number, add total number of submissions to pmf overview

This commit is contained in:
Matthias Nannt
2023-02-06 15:42:23 +01:00
parent c898af0390
commit 92b750c87e
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ export function FbPie({ color, submissions, schema, fieldName }: Props) {
dominantBaseline="central">
{/*
// @ts-ignore */}
{data[index].name} ({value})
{data[index].name} ({Math.round((value / data.length) * 100)}%)
</text>
);
}}