()
| 296 | } |
| 297 | |
| 298 | function setupThemeObserver() { |
| 299 | const mediaQuery = window.matchMedia("(prefers-color-scheme: dark)"); |
| 300 | |
| 301 | mediaQuery.addEventListener("change", (e) => { |
| 302 | charts.forEach((chart) => { |
| 303 | if (chart) { |
| 304 | chart.updateOptions({ |
| 305 | theme: getChartTheme(), |
| 306 | grid: { |
| 307 | borderColor: getGridBorderColor(), |
| 308 | }, |
| 309 | chart: getChartOptions(), |
| 310 | }); |
| 311 | } |
| 312 | }); |
| 313 | }); |
| 314 | } |
| 315 | |
| 316 | // --- Adaptive sampling --- |
| 317 |
no test coverage detected