diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/RatingSummary.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/RatingSummary.tsx index 2ca94b645a..6971368145 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/RatingSummary.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/RatingSummary.tsx @@ -86,7 +86,7 @@ export const RatingSummary = ({ questionSummary, survey, setFilter }: RatingSumm
-
+
{questionSummary.choices.map((result, index) => { if (result.percentage === 0) return null; // Calculate opacity based on rating position (higher rating = higher opacity) @@ -94,82 +94,60 @@ export const RatingSummary = ({ questionSummary, survey, setFilter }: RatingSumm const opacity = 0.3 + (result.rating / range) * 0.7; // Range from 30% to 100% return ( - - - - - - -
-
- -
-
- {result.count} {result.count === 1 ? t("common.response") : t("common.responses")}{" "} - ({convertFloatToNDecimal(result.percentage, 1)}%) -
-
-
-
-
+ ); })}
-
-
- - Low -
-
- High - -
+
+ {questionSummary.choices.map((result, index) => { + if (result.percentage === 0) return null; + + return ( +
+
+ +
+
+ {convertFloatToNDecimal(result.percentage, 1)}% +
+
+ ); + })}