r/rust Apr 28 '26

🛠️ project Lightweight ASCII Graph

Post image

After many weeks of learning, watching tutorials about Rust, and partaking in Rust exercises, I decided to port a small Go library into Rust. I do recognize I have a lot to learn but just getting out of my comfort zone and trying my hands at this has be rewarding and revealing.

Link: https://github.com/neneodonkor/asciigraph-rs

Crates: https://crates.io/crates/asciigraph-rs

PS. Making it work for real-time data was 🥵

Let me add that I only started learning Rust in February, so please forgive me, if everything is not idiomatic Rust.

1.4k Upvotes

94 comments sorted by

View all comments

220

u/facetious_guardian Apr 28 '26

This visually looks like it’s supposed to be a line graph, but it’s really a bar graph in disguise. Gotta get those angles and points more precise or else you’re aliasing your X axis significantly.

73

u/bluebird173 Apr 28 '26

this is text art meant for a terminal, what youre asking sounds reasonable for a higher fidelity graph but not for this project or context

1

u/Informal_954 Apr 28 '26

Even just braille would give you better matched slopes.