Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snekw committed Apr 2, 2024
1 parent 8410f55 commit 9d3fa66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const dateOriginTime = dateOrigin.getTime()

// Create a XY Chart.
const chart = lightningChart().ChartXY({
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
})
// Use DateTime X-axis using previously defined origin.
chart.getDefaultAxisX().setTickStrategy(AxisTickStrategies.DateTime, (tickStrategy) => tickStrategy.setDateOrigin(dateOrigin))
Expand Down

0 comments on commit 9d3fa66

Please sign in to comment.