diff --git a/package.json b/package.json index cfe6f6b..c3440af 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 946ddab..3df4aeb 100644 --- a/src/index.js +++ b/src/index.js @@ -10,6 +10,6 @@ const lcjs = require('@arction/lcjs') const { lightningChart, MapTypes, Themes } = lcjs const mapChart = lightningChart().Map({ - // theme: Themes.darkGold + theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined, type: MapTypes.World, })