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§
- Chart
Config - 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.