From 154056b42e2ae044aaed415254738cd4c0a7369c Mon Sep 17 00:00:00 2001 From: plouc Date: Fri, 8 Mar 2024 11:06:23 +0900 Subject: [PATCH] fix(website): fix time based scale ticks demos --- website/src/components/guides/axes/scales.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/src/components/guides/axes/scales.tsx b/website/src/components/guides/axes/scales.tsx index 6bf439067..32192cec8 100644 --- a/website/src/components/guides/axes/scales.tsx +++ b/website/src/components/guides/axes/scales.tsx @@ -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]) @@ -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