Observable Plot on the command line

Install this module with:


Add your own Plot definition in chart_svg.js, then run:

node chart_svg.js > result.svg

or, with a converter installed (such as ImageMagick):

node chart_svg.js | convert - result.png

If the chart has a legend, or a caption, Plot returns an HTML node instead of a SVG node:

node chart_html.js > result.html



View Github