Fork me on GitHub
#data-science
<
2019-02-24
>
metasoarous03:02:17

@dcj @jsa-aerial Agreed; that does look like a bug. As an alternative to joining the Vega slack (which isn't a bad idea in its own right), you could just post an issue: https://github.com/vega/vega-lite/issues

metasoarous06:02:16

@dcj Ah! Lovely! That's a wonderful solution. Thanks for updating us.

jsa-aerial17:02:55

@dcj That's the ' add a transform to your spec which takes your year, month, day map and turns it into a legal temporal string and assigns that to a new field" that I mentioned. Very nice though that someone presented it so that we didn't need to figure it out! 😂

dcj19:02:17

@jsa-aerial @metasoarous I just tried the code in the SO answer, it worked, BUT, month 2 was labelled as March! This is similar to the issue I had with days previously. My hypothesis is that some of the vega-lite fields are actually zero-based, not 1-based. So, for in this case, I changed the month calculation to be

datum.date.month - 1
, and then it worked....

dcj19:02:54

@jsa-aerial @metasoarous When I RTFM, it is documented that month is zero based! https://vega.github.io/vega/docs/expressions/

😂 10