Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plotting library #3534

Closed
dmaretskyi opened this issue Jun 23, 2023 · 0 comments
Closed

Plotting library #3534

dmaretskyi opened this issue Jun 23, 2023 · 0 comments

Comments

@dmaretskyi
Copy link
Contributor

dmaretskyi commented Jun 23, 2023

Research goals

  • Plotting library can be callable from a node process, opens a separate window to draw plots
  • (sub goal) Library just works in the browser environment and we implement the windowing logic using Electron
  • Wide range of plot types: line, hist, markers on plots, stacked plots
  • Bonus points for athtetics 👉👈

Ploting packages:

- ✅ Chart.js:
- ❌✅ chartjs-node-canvas:
  • Repo is not active, 01/2022 last activity
  • Adds canvases on top of Chart.js png render functionality
- ❌chartjs-node:
  • Last commit in 2018, so not supported
- ❌Highcharts
  • Browser only
- ❌React-chartjs-2
  • React components for data visualization
- ❌d3
  • Browser only
- ✅ danfojs-node
  • allows to use danfo in node

Proposed windowing layer design (in case the library is browser-only)

  • Host Node process (the one where library is used from) spawns a http api server on a random port (choosen by OS).
  • Host process spawns a child electron process passing API port through argv or env variable.
  • API has one endpoint that returns an event stream controlling graph state.
  • Electron process calls the events endpoint and uses events to control what is drawn.
  • Library has an API on the host side to produce events to change what is drawn.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants