From 1fbd55a9f78216dc968462f38887dc4abbf40fde Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Fri, 5 Apr 2024 15:11:16 +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 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,