blessed-contrib icon indicating copy to clipboard operation
blessed-contrib copied to clipboard

Feature Request: scatter plots

Open HugoDF opened this issue 8 years ago • 10 comments

Would having a scatter plot capability be something blessed-contrib is looking to add?

Some data is best visualised as a scatter plot instead of a line or bar chart.

This would also make blessed a very good option to quickly visualise data without having to go through a web interface (where of course we can use D3). This is something I feel where the JavaScript ecosystem is lacking when compared to say Python (eg. matplotlib).

HugoDF avatar Feb 19 '17 15:02 HugoDF

Hi @HugoDF , I think a scatter plot would be a great addition to blessed-contrib (and the js eco system)! I probably don't have capacity to implement it right now but would me more than happy to accept a PR :)

yaronn avatar Feb 19 '17 16:02 yaronn

Thanks for the swift reply @yaronn. Any pointers on how you would go about implementing it? From the other chart type implementations I'm guessing some canvas plotting would do the trick?

HugoDF avatar Feb 19 '17 16:02 HugoDF

yes, the line chart (https://github.com/yaronn/blessed-contrib/blob/master/lib/widget/charts/line.js) or donut (https://github.com/yaronn/blessed-contrib/blob/master/lib/widget/donut.js) are examples of how to use the canvas. Generally speaking you would implement setData() to paint on a canvas similarly to how you would do it in javascript on the browser.

yaronn avatar Feb 19 '17 17:02 yaronn

👍

syzer avatar Apr 09 '18 19:04 syzer

👍

vaderdan avatar Apr 09 '18 19:04 vaderdan

👍

cauboy avatar Apr 09 '18 19:04 cauboy

👍

dym-ok avatar Apr 09 '18 20:04 dym-ok

:+1:

idris-maps avatar Apr 10 '18 05:04 idris-maps

:+1:

hexagon6 avatar Apr 10 '18 11:04 hexagon6

is anyone looking for this still?

eamonpenland avatar May 27 '19 23:05 eamonpenland