sum += data;
                        });
                        let percentage = (value * 100 / sum).toFixed(2) + "%";
                        if (percentage === '0.00%') {
                            return '';
                        } else {
                            return percentage;
                        }
                    },
                },
            }
        }

        const outcomeChart = new Chart(outcomeChartCtx, {
            type: 'doughnut',
            data: outcomeData,
       