vega-lite: how to aggregate by week

102 views
Skip to first unread message

Andrea Borruso

unread,
Apr 16, 2020, 3:05:03 AM4/16/20
to vega-js
Hi,
I have seen that it's possible aggregate using several time units, in example month, but not week.

And I have seen that in vega it's possible to customize the time unit https://vega.github.io/vega/docs/transforms/timeunit/#chronological-time-units

Is it possible to use it in vega-lite and aggregate by week, and transform this aggregation from month to week?

Thank you


Roy I

unread,
Apr 17, 2020, 10:18:51 AM4/17/20
to vega-js
VegaLite (v. 4.10.4) Time Unit documentation does not include "week":

You can submit a feature request at:

andy

unread,
Apr 17, 2020, 10:44:12 AM4/17/20
to Roy I, vega-js


--
___________________

Andrea Borruso
website: https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___________________

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno, 
e farlo durare, e dargli spazio"

Italo Calvino

Dominik Moritz

unread,
Apr 17, 2020, 6:32:51 PM4/17/20
to andy, Roy I, vega-js
Thank you for raising the issue. We are adding support for week time units in https://github.com/vega/vega-lite/pull/6354

--
You received this message because you are subscribed to the Google Groups "vega-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vega-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vega-js/CAHEdGZPQRXZnuXBe_8XwTnnsuo3sWb1MOH86WHT-F0wrMXx4ZA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages