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, })