.dataIndex];
                                }
                            }
                        }]
                    };
                };
        
                // Initialize the chart
                const initializeChart = () => {
                    const isDarkMode = localStorage.getItem('darkMode') === 'enabled';
                    const chart = echarts.init(document.querySelector("#itemDistributionChart"));
                    const chartOptions = setChartOptions(isDarkMode);
              