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
- Host: GitHub
- URL: https://github.com/fil/plot-cli
- Owner: Fil
- License: isc
- Created: 2022-05-16T15:44:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T21:34:51.000Z (over 2 years ago)
- Last Synced: 2025-04-11T05:12:28.293Z (about 1 month ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 22
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
~~~