Skip to content

Instantly share code, notes, and snippets.

@paulshen
Created June 29, 2021 17:29
Show Gist options
  • Save paulshen/a7bf90258573ee3d15a607b5b64b41dd to your computer and use it in GitHub Desktop.
Save paulshen/a7bf90258573ee3d15a607b5b64b41dd to your computer and use it in GitHub Desktop.
natto.dev vega-embed renderer
import vegaEmbed from 'https://cdn.skypack.dev/vega-embed';
export default (element) => ({
render: (value) => {
vegaEmbed(element, value);
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment