From 58c72b041856f0b448fdda51ab20038bfedad2b5 Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Wed, 13 Mar 2024 11:19:17 +0200 Subject: [PATCH] Update --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a9e44fd..0aef16c 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 eb593f9..efa621f 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ const { lightningChart, AxisTickStrategies, SolidFill, SolidLine, ColorRGBA, Col // Create a XY Chart. const chart = lightningChart().ChartXY({ - // theme: Themes.darkGold + theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined, }).setTitle('Daily temperature range, April 2019') const axisX = chart.getDefaultAxisX()