Kenzoo1 commited on
Commit
dcca700
·
verified ·
1 Parent(s): 37baacf

finsish the incomplete work

Browse files
Files changed (2) hide show
  1. dashboard.html +7 -2
  2. script.js +3 -2
dashboard.html CHANGED
@@ -238,6 +238,11 @@
238
  options: {
239
  plugins: {
240
  legend: {
241
- position
 
 
 
 
 
242
  </body>
243
- </html>
 
238
  options: {
239
  plugins: {
240
  legend: {
241
+ position: 'right'
242
+ }
243
+ },
244
+ cutout: '70%',
245
+ maintainAspectRatio: false
246
+ </script>
247
  </body>
248
+ </html>
script.js CHANGED
@@ -39,8 +39,9 @@ function initAIAssistant() {
39
  // Theme toggle functionality
40
  document.addEventListener('DOMContentLoaded', () => {
41
  initAIAssistant();
42
- const themeToggle = document.getElementById('theme-toggle');
43
- if (themeToggle) {
 
44
  themeToggle.addEventListener('click', () => {
45
  document.documentElement.classList.toggle('dark');
46
  localStorage.setItem('theme', document.documentElement.classList.contains('dark') ? 'dark' : 'light');
 
39
  // Theme toggle functionality
40
  document.addEventListener('DOMContentLoaded', () => {
41
  initAIAssistant();
42
+
43
+ const themeToggle = document.getElementById('theme-toggle');
44
+ if (themeToggle) {
45
  themeToggle.addEventListener('click', () => {
46
  document.documentElement.classList.toggle('dark');
47
  localStorage.setItem('theme', document.documentElement.classList.contains('dark') ? 'dark' : 'light');