diff --git a/src/index.js b/src/index.js index f02afcd..9c52bda 100644 --- a/src/index.js +++ b/src/index.js @@ -22,7 +22,9 @@ const { // Create Dashboard and Charts. // NOTE: Using `Dashboard` is no longer recommended for new applications. Find latest recommendations here: https://lightningchart.com/js-charts/docs/basic-topics/grouping-charts/ -const dashboard = lightningChart().Dashboard({ +const dashboard = lightningChart({ + resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/', + }).Dashboard({ theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined, numberOfColumns: 3, numberOfRows: 2,