From 4561d4a2883e2cf44c91a9d67df941a5b55e44ce Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Fri, 5 Apr 2024 15:10:45 +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 47671c0..3472e69 100644 --- a/src/index.js +++ b/src/index.js @@ -14,7 +14,9 @@ const { lightningChart, AxisScrollStrategies, Themes } = lcjs const { createSampledDataGenerator } = xydata // Create a XY Chart. -const chart = lightningChart() +const chart = lightningChart({ + resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/', + }) .ChartXY({ theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined, })