Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
448 views
in Technique[技术] by (71.8m points)

javascript - Vega-Lite tooltip not showing time in UTC

I have a Vega-Lite spec visualizing timeseries data with ISO8601 UTC timestamps. These show correctly on the X-axis labels, but in tooltip the time is displayed in local timezone, not UTC.

Is there a way to set timezone for the tooltip?

"tooltip": [
      {
        "type": "quantitative",
        "field": "data[1]",
        "title": "Value "
      },
      {
        "type": "temporal",
        "field": "data[0]",
        "title": "Datetime ",
        "format": "%Y-%m-%dT%H:%M:%SZ"
      }
    ]

Link to full spec in Vega editor

question from:https://stackoverflow.com/questions/65883068/vega-lite-tooltip-not-showing-time-in-utc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...