antonmedv / numbr

Notepad + calculator
https://numbr.dev
499 stars 33 forks source link

Feature request: Add array operations and plots #20

Open cuamckuu opened 1 year ago

cuamckuu commented 1 year ago

Might be cool to have some kind of arrays or sets and way to modify and plot them (something like numpy and matplotlib)

For example:

x = [1..10]
y = x * 5

plot(x, y)  # Line plot here
antonmedv commented 1 year ago

I was thinking at the beginning about creating something like this.

But for now, I decided to concentrate on currencies and dates/timezones.

cuamckuu commented 1 year ago

And what about some kind of plugins system then? So that others will be able to add own plots, functions, currencies, etc...

antonmedv commented 1 year ago

Will be cool to create something like it.

gedw99 commented 1 year ago

I am using deck for charting / plots. It’s golang and can work as a shared lib and as wasm

https://github.com/ajstarks/decksh

you can re de to pdf and png and svg also

cuamckuu commented 1 year ago

I think it will be simpler to add rich interactive plots to frontend side with libs like Chart.js or D3.js