|
818 | 818 | </a> |
819 | 819 | <ul class="nav nav-treeview"> |
820 | 820 | <li class="nav-item"> |
821 | | - <a href="../charts/apexcharts.html" class="nav-link"> |
| 821 | + <a href="../charts/chartjs.html" class="nav-link"> |
822 | 822 | <i class="nav-icon bi bi-circle"></i> |
823 | | - <p>ApexCharts</p> |
| 823 | + <p>Chart.js</p> |
824 | 824 | </a> |
825 | 825 | </li> |
826 | 826 | </ul> |
@@ -1332,38 +1332,6 @@ <h3 class="timeline-header"><a href="#">Mr. Doe</a> shared a video</h3> |
1332 | 1332 | }); |
1333 | 1333 | </script> |
1334 | 1334 | <!--end::OverlayScrollbars Configure--> |
1335 | | - <!--begin::Charts follow the colour mode--> |
1336 | | - <script> |
1337 | | - // ApexCharts draws light-theme tooltips and axis text unless told otherwise, |
1338 | | - // which is unreadable in dark mode (#6105). Give it the page's colour mode as |
1339 | | - // a global default before any chart is created — this runs before the chart |
1340 | | - // pages' own scripts — and keep every chart that has a `chart.id` in step |
1341 | | - // when the mode changes (ColorMode, the OS in auto mode, or your own code). |
1342 | | - (() => { |
1343 | | - 'use strict'; |
1344 | | - const mode = () => |
1345 | | - document.documentElement.getAttribute('data-bs-theme') === 'dark' ? 'dark' : 'light'; |
1346 | | - // `Apex` is ApexCharts' global-options object; it must exist before the library loads. |
1347 | | - // theme.mode also sets a dark chart background — keep the card's instead. |
1348 | | - // eslint-disable-next-line unicorn/no-global-object-property-assignment |
1349 | | - globalThis.Apex ||= {}; |
1350 | | - const apex = globalThis.Apex; |
1351 | | - apex.theme = { mode: mode() }; |
1352 | | - apex.chart = Object.assign(apex.chart || {}, { background: 'transparent' }); |
1353 | | - new MutationObserver(() => { |
1354 | | - const next = mode(); |
1355 | | - apex.theme = { mode: next }; |
1356 | | - const instances = apex._chartInstances || []; |
1357 | | - for (const { chart } of instances) { |
1358 | | - chart.updateOptions({ theme: { mode: next } }, false, false); |
1359 | | - } |
1360 | | - }).observe(document.documentElement, { |
1361 | | - attributes: true, |
1362 | | - attributeFilter: ['data-bs-theme'], |
1363 | | - }); |
1364 | | - })(); |
1365 | | - </script> |
1366 | | - <!--end::Charts follow the colour mode--> |
1367 | 1335 |
|
1368 | 1336 | <!--begin::Color Mode Toggle--> |
1369 | 1337 | <!-- The light/dark/auto switcher ships in adminlte.js as the ColorMode |
|
0 commit comments