___________
\_ _____/_________ _____.__.
| __)_\_ __ \ \/ < | |
| \| | \/\ / \___ |
/_______ /|__| \_/ / ____|
\/ \/
![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square)
Bring charts to terminal.
Preview
Ervy site
Why build this
There is no special reason, just because I love terminal and ASCII art. It's very cool! Hope you enjoy Ervy and make your terminal more beautiful.
Supported Chart types
Bar
![](https://github.com/chunqiuyiyu/ervy/raw/HEAD/site/imgs/bar.png)
Pie
![](https://github.com/chunqiuyiyu/ervy/raw/HEAD/site/imgs/pie.png)
bullet
![](https://github.com/chunqiuyiyu/ervy/raw/HEAD/site/imgs/bullet.png)
Donut
![](https://github.com/chunqiuyiyu/ervy/raw/HEAD/site/imgs/donut.png)
Gauge
![](https://github.com/chunqiuyiyu/ervy/raw/HEAD/site/imgs/gauge.png)
Scatter
![](https://github.com/chunqiuyiyu/ervy/raw/HEAD/site/imgs/scatter.png)
APIs
main function
ervy.[chartType](data, options)
render colored characters
ervy.fg(color, character)
ervy.bg(color, [length])
Supported color: black, red, green, yellow, blue, magenta, cyan and white.
Use demo to understand how to combine APIs in actual code.
Documents
Come soon...
License
MIT