An open API service indexing awesome lists of open source software.

https://github.com/fil/plot-cli

Observable Plot on the command line
https://github.com/fil/plot-cli

Last synced: about 1 month ago
JSON representation

Observable Plot on the command line

Awesome Lists containing this project

README

        

*Observable Plot on the command line*

Install this module with:
~~~bash
yarn
~~~

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

~~~bash
node chart_svg.js > result.svg
~~~

or, with a converter installed (such as ImageMagick):
~~~bash
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:
~~~bash
node chart_html.js > result.html
~~~