Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snekw committed Apr 5, 2024
1 parent 6fd9b30 commit 6e257c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ const { lightningChart, AreaSeriesTypes, AxisScrollStrategies, AxisTickStrategie
const dateOrigin = new Date(2017, 0, 1)

// Create a XY Chart.
const xyChart = lightningChart().ChartXY({
const xyChart = lightningChart({
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
}).ChartXY({
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
})
// Use DateTime TickStrategy and set the interval
Expand Down

0 comments on commit 6e257c0

Please sign in to comment.