Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better axis format for timeUnit #9430

Open
kanitw opened this issue Sep 10, 2024 · 0 comments
Open

Better axis format for timeUnit #9430

kanitw opened this issue Sep 10, 2024 · 0 comments
Assignees
Labels

Comments

@kanitw
Copy link
Member

kanitw commented Sep 10, 2024

Bug Description

For timeUnit that includes the whole date (date truncation),

{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
  "description": "Google's stock price over time.",
  "data": {"url": "data/stocks.csv"},
  "transform": [{"filter": "datum.symbol==='GOOG'"}],
  "mark": "line",
  "encoding": {
    "x": {
      "timeUnit": "yearmonthdatehoursminutes",
      "field": "date", "type": "temporal"
    },
    "y": {"field": "price", "type": "quantitative"}
  }
}
image

It's actually generally better if we don't apply timeUnit specifiers here.

@kanitw kanitw self-assigned this Sep 10, 2024
kanitw added a commit that referenced this issue Sep 11, 2024
kanitw added a commit that referenced this issue Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant