mhkeller plot

Oct 20, 2023

https://github.com/mhkeller/plot

A node library to display charts in popup windows and save them as pngs. Supports observablehq/plot, vega-lite and plotly out of the box.

In notebook-based systems or IDEs like RStudio, it's nice to create a quick chart or map from your data. There aren't that many similar solutions for Node.js, however. This library is a small bridge that allows you to take advantage of these or similar charting libraries such as observablehq/plotvega-litevega-lite-api and plotly or others to renders charts in a browser environment directly from a Node script, see the results in a minimal popup window and save the image.

Interesting library! I wish it had a CLI. I prototype a little CLI that you can pipe data to and get an observable plot in the console, but probably I should read this code to see how they're doing it.

↑ up