This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-24
Channels
- # announcements (2)
- # beginners (22)
- # cider (10)
- # clojure (47)
- # clojure-italy (2)
- # clojure-spec (2)
- # clojure-uk (1)
- # clojurebridge (5)
- # clojurescript (19)
- # cursive (1)
- # data-science (7)
- # datomic (2)
- # duct (18)
- # emacs (6)
- # figwheel-main (2)
- # java (2)
- # luminus (1)
- # nrepl (20)
- # off-topic (69)
- # om (3)
- # pathom (45)
- # quil (2)
- # re-frame (16)
- # reagent (1)
- # reitit (6)
- # ring (2)
- # shadow-cljs (33)
- # tools-deps (9)
- # vim (6)
- # yada (1)
@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
@jsa-aerial @metasoarous maybe there is a way to do what I originally asked: https://stackoverflow.com/questions/54835983/vega-lite-how-to-specify-date-in-json-as-separate-fields-containing-year-month/54837454#54837454
@dcj Ah! Lovely! That's a wonderful solution. Thanks for updating us.
@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! 😂
@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....@jsa-aerial @metasoarous When I RTFM, it is documented that month is zero based! https://vega.github.io/vega/docs/expressions/
Cool!