()
| 87 | }; |
| 88 | |
| 89 | function getChartTheme() { |
| 90 | const isDarkMode = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches; |
| 91 | if (isDarkMode) { |
| 92 | return { |
| 93 | mode: "dark", |
| 94 | palette: "palette4", |
| 95 | }; |
| 96 | } else { |
| 97 | return { |
| 98 | mode: "light", |
| 99 | }; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | function getChartOptions() { |
| 104 | const isDarkMode = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches; |
no outgoing calls
no test coverage detected