mhkeller / plot Goto Github PK
View Code? Open in Web Editor NEWA node library to display charts in popup windows and save them as pngs. Supports observablehq/plot, vega-lite and plotly out of the box.
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.
So it looks a bit nicer
Currently, if you click the dock icon, chromium won't think any windows are open and will try to open a blank browser window. This is because we are loading the chart in a popup window to avoid having a bunch of distracting page chrome.
As a current workaround, the library listens for any new page events and immediately closes the new page. This is a little annoying. It would be great if chromium had a command-line flag that would allow you to disable this behavior. I'll have to sort out how to make an issue on chromium... Any other suggestions welcome!
So that if you need to resize them for interactivity such as tooltips, you'll get whitespace on all sides.
It may be cleaner to use a custom Electron app instead of Playwright. Could use this as a model: https://github.com/stdlib-js/stdlib/blob/develop/lib/node_modules/%40stdlib/plot/ctor/lib/view/electron/index.js
The hard part will be implementing a structured clone process so that data is passed between the two processes without being serialized. This is particularly important for date fields.
It may end up not being worth it since Playwright is working fine.
Once this gets put into a release microsoft/playwright#19418
It would be interesting if you could add sliders and things to adjust x, y axes or things. I wonder if this could be done by loading up a svelte app
Tracking in microsoft/playwright#16598
And make sure it's being cleaned up.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.