Created
June 29, 2021 17:29
-
-
Save paulshen/a7bf90258573ee3d15a607b5b64b41dd to your computer and use it in GitHub Desktop.
natto.dev vega-embed renderer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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