From e568dc44ca00ed9532adc503ebdd200e989e5dc6 Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Fri, 5 Apr 2024 15:11:59 +0300 Subject: [PATCH] Update --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,