blessed-contrib
blessed-contrib copied to clipboard
Feature Request: scatter plots
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).
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 :)
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?
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.
👍
👍
👍
👍
:+1:
:+1:
is anyone looking for this still?