That’s what we currently use for the label and tooltip, but the interval on the plot doesn’t change to UTC when it’s set to 1-day intervals.
I think I got this functionality by putting this after the render line:
if (document.querySelector('button[state="pan"]')) { document.querySelector('button[state="pan"]').click(); }
Hello, I have interval set to 1 day, but the tick marks still have an interval of every local day instead of UTC day. How can I change the interval tick to occur on every UTC midnight?
I think I was able to get what I wanted by using labelFormatter and combining it with toLocaleString. Updated example: https://jsfiddle.net/h1movjbe/1/
Hello, can you give an example based on my jsfiddle?
I tried applying toUTCString to the x datapoints and it didn’t work. For example, in a datapoint pair, “x”: (new Date(1601006400003)).toUTCString() didn’t output anything.