Skip to main content

Module charts

Module charts 

Source
Expand description

§ASCII Chart Rendering

This module provides ASCII chart rendering for terminal display, similar to the visualization style used by btm (bottom).

§Features

  • Line charts for price history
  • Bar charts for volume data
  • Distribution charts for holder concentration

§Usage

use scope::display::charts::{render_price_chart, ChartConfig};
use scope::chains::PricePoint;

let history = vec![
    PricePoint { timestamp: 0, price: 100.0 },
    PricePoint { timestamp: 3600, price: 105.0 },
];

let chart = render_price_chart(&history, 60, 10);
println!("{}", chart);

Structs§

ChartConfig
Configuration for chart rendering.

Functions§

render_analytics_dashboard
Renders a combined analytics dashboard with price, volume, and holder charts.
render_holder_distribution
Renders a holder distribution chart as ASCII bars.
render_price_chart
Renders a price chart as ASCII art.
render_volume_chart
Renders a volume chart as ASCII art using bar representation.