Crate rasciichart

Crate rasciichart 

Source
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§

Config
Configuration for chart rendering
Symbols
Symbols used for drawing the chart

Enums§

ChartError
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

Type Aliases§

Result