Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Snekw committed Mar 13, 2024
1 parent 5da7683 commit eea30b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
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.darkGold
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 eea30b9

Please sign in to comment.