mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-08 02:43:06 -05:00
show percentage in pie chart instead of total number, add total number of submissions to pmf overview
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user