Skip to content

Commit 1577891

Browse files
committed
Update
1 parent 3638a2b commit 1577891

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ const dateOrigin = new Date(2018, 0, 1)
1818
const dateOriginTime = dateOrigin.getTime()
1919

2020
// Create a XY Chart.
21-
const chart = lightningChart().ChartXY({
21+
const chart = lightningChart({
22+
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
23+
}).ChartXY({
2224
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
2325
})
2426
// Use DateTime X-axis using with above defined origin.

0 commit comments

Comments
 (0)