Generating images using Vega(-Lite) and node | Bart Mesuere | Observable
ojs
ojs
ojs
Author
Bart Mesuere
@bmesuere
Professor Big Data Science at Ghent University.
Comments (1)
Philip Tellis
Jan 26, 2023
You don't really need `JSON.parse` here since you already have JSON. Just paste it into your code without the backticks like `const vlSpec = {"mark":{"type":"bar"},...}`
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
1
Follow
Follow
Generating images using Vega(-Lite) and node | Bart Mesuere | Observable