From ce0f6837c39731d66db6505370c7305f0918ddb6 Mon Sep 17 00:00:00 2001 From: Ilkka Kuosmanen Date: Fri, 5 Apr 2024 15:10:51 +0300 Subject: [PATCH] Update --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 8716cb9..410937d 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,9 @@ const lcjs = require('@arction/lcjs') const { lightningChart, BarChartTypes, BarChartSorting, AxisScrollStrategies, Themes } = lcjs -const lc = lightningChart() +const lc = lightningChart({ + resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/', + }) const barChart = lc .BarChart({ type: BarChartTypes.Horizontal,