diff --git a/src/index.js b/src/index.js index 5cc443e..6342c72 100644 --- a/src/index.js +++ b/src/index.js @@ -21,7 +21,9 @@ const { // Create a 5x2 dashboard. // 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 grid = lightningChart().Dashboard({ +const grid = 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, numberOfRows: 3, numberOfColumns: 2,