Hi! I am referring to the Graphics.Vega.VegaLite.Output module. I suggest extracting and also exporting an embed function that allows embedding of visualizations into html files. That is (this uses blaze-html, but we could stick to using plain text):
You can see I've been ignoring the embedding stuff (see how long #107 has been waiting for me to look at it). I don't have much time/energy for hvega so I'd need someone to champion this/write the code.
Hi! I am referring to the
Graphics.Vega.VegaLite.Output
module. I suggest extracting and also exporting anembed
function that allows embedding of visualizations into html files. That is (this usesblaze-html
, but we could stick to using plain text):Then,
toHtmlWith
could reuse this function, and visualizations can directly beembed
ded into other HTML files.Further, one could also export a
vegaHeader
function that includes the java script parts ofvega-embed
.EDIT: I just noticed that we need to provide a name so that we can embed more than one visualization in one HTML file.