livebook-dev / vega_lite

Elixir bindings for Vega-Lite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rendering outside of Livebook?

brainlid opened this issue · comments

Can vega_lite be used to render graphics/charts outside of Livebook?

Like can I add this to a regular Phoenix application and generate/render a chart?

Looking at the docs I didn't see a way to do that.

@brainlid yes but the wiring is up to your self. In this case you would export it to the json spec and pass the json spec to the VegaLite code in JS land.

@brainlid if you figure it out and you want to send a PR for the docs, it will be very appreciated :)

@brainlid just yesterday I put together an example of that in this repo, let me know if that's what you're looking for :)

@jonatanklosko I think that's exactly what I was looking for! :smile: Thanks! You're awesome! :100: :1st_place_medal: