Skip to content

Arrow Date format #1601

Answered by mbostock
ryanmckaytx asked this question in Q&A
Aug 25, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Looking at the live example you shared (thank you for that) it appears you are using the latest versions of Framework (1.10.1), Plot (0.6.16), and Inputs (0.11.0). So you should be all good there.

For bar vs. rect marks, you can use either depending on whether you want to treat dates as ordinal or quantitative. In either case, you typically want to specify the interval option to tell Plot what the frequency of the samples are, such as interval: "day" for daily data. And you generally use the barY mark with the groupX transform, and the rectY mark with the binX transform. Using barY with binX is generally a no-no.

If you have additional questions about Plot, please ask over on the Plot dis…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ryanmckaytx
Comment options

@mbostock
Comment options

@mbostock
Comment options

Answer selected by ryanmckaytx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants