This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-09
Channels
- # alda (9)
- # announcements (1)
- # beginners (6)
- # boot (140)
- # cbus (2)
- # cider (27)
- # cljs-dev (19)
- # cljsrn (17)
- # clojure (104)
- # clojure-art (1)
- # clojure-brasil (5)
- # clojure-colombia (2)
- # clojure-russia (146)
- # clojure-sg (3)
- # clojurescript (64)
- # clojurex (1)
- # cursive (17)
- # data-science (22)
- # datomic (41)
- # editors-rus (5)
- # events (1)
- # hoplon (61)
- # ldnclj (35)
- # lein-figwheel (1)
- # off-topic (1)
- # om (119)
- # onyx (214)
- # re-frame (3)
- # reagent (13)
- # robots (5)
- # slack-help (1)
- # yada (17)
A few thoughts... is there a way to parse full vega json specs? That would help it integrate with the vega-lite project (https://github.com/vega/vega-lite) and the vega examples as well
To be honest, parsing full vega json specs wasn't really a design consideration when I was making the 0.1.0 version.
But, tt's so early days that I'm receptive to adding in support for parsing vega specs 😃
I really like the idea of having a data structure that you manipulate in Clojure and have vega parse...
but to be honest, I don't understand enough about the complexities involved to make it happen
Currently, you should be able to call vega.view/plot!
on vega specs as long as it doesn't call in datasets by a URL that will violate the browser's cross origin request secruity
oh, and getting clojure and vega parse to play with each other was reasonably straightforward: Gyptis creates a websocket connection to a browser tab; that browser is running cljs and renders every vega-spec that comes down the wire into a div.
Ok I've got a very rudimentary example of pulling in an existing vega spec and then plotting it from Gyptis: