We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459b624 commit 21315a8Copy full SHA for 21315a8
src/index.js
@@ -14,7 +14,9 @@ const { lightningChart, Themes } = lcjs
14
const { createProgressiveTraceGenerator } = xydata
15
16
// Create a XY Chart.
17
-const chart = lightningChart().ChartXY({
+const chart = lightningChart({
18
+ resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
19
+ }).ChartXY({
20
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
21
})
22
0 commit comments