Skip to content

Commit 89476d7

Browse files
committed
Update
1 parent 50c4cff commit 89476d7

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
@@ -11,7 +11,9 @@ const lcjs = require('@arction/lcjs')
1111
const { lightningChart, AreaSeriesTypes, UIElementBuilders, LegendBoxBuilders, PointShape, Themes } = lcjs
1212

1313
// Create a XY Chart.
14-
const xyChart = lightningChart()
14+
const xyChart = lightningChart({
15+
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
16+
})
1517
.ChartXY({
1618
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
1719
})

0 commit comments

Comments
 (0)