Fork me on GitHub
#biff
<
2022-08-02
>
Ash17:08:33

Hi Biff users, I wanted to add some Vega-Lite charts to my Biff-powered web pages so I used Hyperscript to simply call Vega-Embed’s JavaScript API directly. So something like...

[:div#vis {:_ "init vegaEmbed('#vis', my-vega-lite-spec) end"}
and also added the Vega package imports to the web page. It works great and it is pretty straightforward. But I’m new to Biff so I’m just wondering if there’s a better way / a Biff plug-in approach to do this? Cheers, Ash

Jacob O'Bryant17:08:18

Hi Ash! looks great to me. that's how I would do it too.

👍 1