Skip to content

Commit 1b9392a

Browse files
committed
Update
1 parent 8195ecc commit 1b9392a

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
@@ -15,7 +15,9 @@ const { createOHLCGenerator, createProgressiveTraceGenerator } = xydata
1515

1616
// Create dashboard to house two charts
1717
// NOTE: Using `Dashboard` is no longer recommended for new applications. Find latest recommendations here: https://lightningchart.com/js-charts/docs/basic-topics/grouping-charts/
18-
const db = lightningChart().Dashboard({
18+
const db = lightningChart({
19+
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
20+
}).Dashboard({
1921
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
2022
numberOfRows: 2,
2123
numberOfColumns: 1,

0 commit comments

Comments
 (0)