loony-bean / textplots-rs

Terminal plotting library for Rust
238 stars 24 forks source link

Feature request: String output of Chart #29

Closed paulirotta closed 3 years ago

paulirotta commented 3 years ago

Chart::display() output directly with println!()

It would be nice to be able to return a String. That allows for example to transfer over a network or include a log file.

It seems relatively staightforward to use format!() instead and allow this additional method. The issue might be more a consistent API pattern (display() vs display_string() etc) across the library for similiar situations.

loony-bean commented 3 years ago

Fixed in #35