Description
asciichart draws nice-looking line charts in the console using ASCII characters. It is written in pure JavaScript with no dependencies and runs in Node.js, in browsers and in the terminal. The width of the chart equals the length of the data series, and the height and value range are determined automatically, so you pass in an array of numbers and get a plot. The options let you change the axis offset from the left, the padding for labels, the chart height, and the label format function, which by default pads and rounds values to two decimals. Auto-range is supported, and multiple series can be drawn in one chart, each with its own color. The README includes usage examples for Node.js and browsers, and a section on scaling to a desired height. The project has been ported to many other languages, including Python, Java, Go, Haskell, Ruby, Elixir, Perl, C, C++, R, Rust, PHP, C#, Deno, Lua, Dart and Mojo. The README lists future work, including levels and points on the graph and better value formatting and auto-scaling. The project is published on GitHub.…
Highlights
- ASCII line charts in the console
- No dependencies, for Node.js, browsers and terminals
- Automatic height and range
- Multiple series with colors
- Ports to many other languages
Ratings & Reviews
No ratings yet
Be the first to rate Asciichart.
People also visit
Asciichart FAQ
What does asciichart do?
It draws line charts made of ASCII characters in a console, from an array of numbers.
Does it need any packages?
No. The README says it has no dependencies.
Can I draw several lines?
Yes. Multiple series are supported, and each can have its own color.
Is there a version for other languages?
Yes. The README lists ports to Python, Go, Rust, Java, Ruby and many more.
How is the height set?
It is determined automatically, though you can set a height in the options.
What are the best Asciichart alternatives?
Popular alternatives to Asciichart include ascii.rest, Tart and Unicode_plot.rb. See all Asciichart alternatives






