Skip to content

Commit 596f563

Browse files
committed
Update
1 parent b375dea commit 596f563

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
@@ -19,7 +19,9 @@ const dateOriginTime = dateOrigin.getTime()
1919

2020
// Create charts and series for two different packing resolutions.
2121
// NOTE: Using `Dashboard` is no longer recommended for new applications. Find latest recommendations here: https://lightningchart.com/js-charts/docs/basic-topics/grouping-charts/
22-
const dashboard = lightningChart().Dashboard({ numberOfColumns: 1, numberOfRows: 2 })
22+
const dashboard = lightningChart({
23+
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
24+
}).Dashboard({ numberOfColumns: 1, numberOfRows: 2 })
2325
const chartDefault = dashboard.createChartXY({
2426
columnIndex: 0,
2527
rowIndex: 0,

0 commit comments

Comments
 (0)