datavis

2019-08-08T20:40:29.001400Z

hello! Does anyone know of an existing clojure spec to enforce the markup for Vega or Vega-lite (https://vega.github.io/vega-lite/docs/#spec)?

2019-08-08T21:11:38.001900Z

I vaguely remember someone talking about working on that, but I might be confusing with something else.

2019-08-08T21:12:17.002700Z

At the very least though, there is a json schema for the specs, from which you should be able to derive specifications.

👍 1
2019-08-08T21:13:59.003Z

thanks, @metasoarous

2019-08-08T21:14:50.003500Z

Sure thing! Please let us know if you come up with anything reusable.

2019-08-08T21:15:44.004300Z

can't commit to it at the moment, but I'd surely share if it got something worthwhile going

👍 1
2019-08-08T21:16:25.004900Z

probably would require some research, getting lessons learned on how the aws library does it, etc...

2019-08-08T21:42:22.005400Z

maybe it's better to interop with https://github.com/vega/vega-lite-api (?).... not sure

2019-08-08T21:43:13.006Z

Well, if you're using from cljs, there's the cljsjs/vega-lite asset you could refer to

2019-08-08T21:43:25.006200Z

oh! do you have that handy?

2019-08-08T21:45:12.006800Z

You can search here: http://cljsjs.github.io/

2019-08-08T21:45:30.007400Z

yeah - I found https://github.com/cljsjs/packages/tree/master/vega-lite but not sure how it helps

2019-08-08T21:45:30.007500Z

I just pushed changes to it last night; not sure if they've been merged yet though

2019-08-08T21:46:17.008400Z

You can just use it like any other clj(s) coord; dep on [cljsjs/vega-lite "3.0.2.-0"] (most recent, based on search in http://cljsjs.github.io)

2019-08-08T21:46:56.009Z

I haven't tried accessing the specs from that, but I think you should be able to?

👀 1