diff --git a/package.json b/package.json index 68084ea..9dde8e0 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "webpack-stream": "^7.0.0" }, "dependencies": { - "@arction/lcjs": "^5.1.1", + "@arction/lcjs": "^4.1.1", "@arction/xydata": "^1.4.0" }, "lightningChart": { diff --git a/src/index.js b/src/index.js index e5c573d..901bfb9 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ const { lightningChart, AxisTickStrategies, Themes } = lcjs // Create a XY Chart. const chart = lightningChart() .ChartXY({ - // theme: Themes.darkGold + theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined, }) .setPadding({ right: 50,