use vega-lite Transformation via command line

43 views
Skip to first unread message

Andrea Borruso

unread,
Aug 31, 2020, 1:01:02 PM8/31/20
to vega-js

The vega-lite data transformations are very comfortable.

Is there a command line way to use them only to process some input data and create the transformed one?

Thank you


Curran Kelleher

unread,
Aug 31, 2020, 3:20:12 PM8/31/20
to vega-js
Try https://github.com/vega/datalib in Node. I believe that's what powers the Vega data transformations internally (but I'm not 100% sure). Good luck!

Example of reading and writing CSV files in Node (can be paired with datalib for IO): https://github.com/curran/data/blob/1de93f0c6196c2b874b3c5642245fcde84f2b452/senseYourCity/simplify.js

Regards,
Curran

Dominik Moritz

unread,
Aug 31, 2020, 7:06:35 PM8/31/20
to Curran Kelleher, vega-js
Datalib is not used by Vega anymore (it used to a few years ago, though). If you want to use Vega transforms, take a look at https://github.com/vega/dataflow-api. Dtaalib by itself can still be useful, though. 

--
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/d5ec66fe-cbe4-4437-9528-4763a2880fd2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages