chunqiuyiyu / ervy

Bring charts to terminal.
https://www.chunqiuyiyu.com/ervy/
MIT License
1.59k stars 45 forks source link

Interactive demo #10

Closed jcubic closed 3 years ago

jcubic commented 4 years ago

I've found a link in your project in one of my old text note and I've used your library as demo for jQuery Terminal (will link it in example page).

https://codepen.io/jcubic/pen/gObPBdP?editors=0010

chart

this can be way to document the project, examples are always great way to showcase the API. You can add command one for each plot/chart. And code for the terminal don't add much boilerplate.

(the welcome message can of course showcase your project and version)

If you don't have time and want this, and if you confirm that you will include the demo with link to my project (terminal.jcubic.pl and my name in credit section or other place) I can take a time to create demo of all your plots.

chunqiuyiyu commented 4 years ago

@jcubic Thanks for your help, I'm very glad to add link of your project and name to Ervy's README.md file, Once you have finished it, I will update README.md file.

jcubic commented 4 years ago

Another working plot is pie chart.

jcubic commented 4 years ago

Demo is working, all plots except scatter plot that have bugs in ANSI codes #14 if you fix that bug the demo should work, there is also help command that show how plot commands should work. And there is demo command that show sample plots.

jcubic commented 4 years ago

There is still issue with scatter plot but if you use 1 ch wide dots it works correctly: https://codepen.io/jcubic/pen/gObPBdP?editors=0010

screencapture-cdpn-io-jcubic-debug-gObPBdP-VGrWNxRKbepM-2020-01-03-17_20_31

chunqiuyiyu commented 4 years ago

I have updated the README.md file.

jcubic commented 4 years ago

Nice, but I thought that you will use on website https://www.chunqiuyiyu.com/ervy/ I'm not sure what page give more visitors. You can embed the terminal directly on the page. With better greetings (maybe your ASCII art). Like try yourself directly on the page.

Is this the website https://github.com/chunqiuyiyu/ervy/tree/master/site? I can create PR with demo directly on that page.

chunqiuyiyu commented 4 years ago

Yes, It is. Your PR is welcome!

jcubic commented 3 years ago

It seems this is solved long ago.