{
                // Function to set chart options
                const setChartOptions = (isDarkMode) => {
                    return {
                        tooltip: {
                            trigger: 'item',
                            backgroundColor: isDarkMode ? '#333' : '#fff',
                            borderColor: isDarkMode ? '#aaa' : '#ccc',
                            textStyle: {
                                color: isDarkMode ? '#fff' : '#333'
                            }
         