Skip to content

Commit

Permalink
fix(website): fix time based scale ticks demos
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Mar 8, 2024
1 parent 06bb46f commit 154056b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/src/components/guides/axes/scales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const timeXScale = scaleTime()
.range([0, 280])
.domain([new Date(2019, 0, 1, 0, 0, 0, 0), new Date(2020, 0, 1, 0, 0, 0, 0)])
timeXScale.type = 'time'
timeXScale.useUTC = false

export const timeXScaleHours = scaleTime()
.range([0, 280])
Expand All @@ -22,3 +23,4 @@ export const timeXScaleHours = scaleTime()
new Date(Date.UTC(2020, 0, 1, 10, 0, 0, 0)),
])
timeXScaleHours.type = 'time'
timeXScaleHours.useUTC = true

0 comments on commit 154056b

Please sign in to comment.