Skip to content

Commit 21315a8

Browse files
committed
Update
1 parent 459b624 commit 21315a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ const { lightningChart, Themes } = lcjs
1414
const { createProgressiveTraceGenerator } = xydata
1515

1616
// Create a XY Chart.
17-
const chart = lightningChart().ChartXY({
17+
const chart = lightningChart({
18+
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
19+
}).ChartXY({
1820
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
1921
})
2022

0 commit comments

Comments
 (0)