Fork me on GitHub
#datavis
<
2019-08-08
>
aaelony20:08:29

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)?

metasoarous21:08:38

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

metasoarous21:08:17

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

👍 4
metasoarous21:08:50

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

aaelony21:08:44

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

👍 4
aaelony21:08:25

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

aaelony21:08:22

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

metasoarous21:08:13

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

aaelony21:08:25

oh! do you have that handy?

metasoarous21:08:30

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

metasoarous21:08:17

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)

metasoarous21:08:56

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

👀 4