Expand description
§rasciichart
A Rust library for creating beautiful ASCII charts in the terminal. Inspired by asciichartpy, this library provides smooth line rendering with extensive customization options.
§Features
- Simple and intuitive API
- Smooth line rendering with box-drawing characters
- Customizable height, width, and axis labels
- Support for multiple data series
- Helper functions for common use cases
- Zero external dependencies
§Quick Start
use rasciichart::plot;
let data = vec![1.0, 2.0, 3.0, 4.0, 5.0, 4.0, 3.0, 2.0, 1.0];
println!("{}", plot(&data));Structs§
Enums§
- Chart
Error - Error types for the library
Functions§
- generate_
cosine - Generate cosine wave data for testing
- generate_
random_ walk - Generate random walk data for testing
- generate_
sine - Generate sine wave data for testing
- plot
- Simple plot function with default config
- plot_
ascii - Plot using ASCII-only characters for better compatibility
- plot_
multiple - Plot multiple series on the same chart (overlaid)
- plot_
no_ labels - Plot without Y-axis labels
- plot_
range - Plot with custom min and max values
- plot_
sized - Plot with custom height and width
- plot_
with_ config - Main plotting function - creates an ASCII chart from a data series