use std::borrow::Cow; use tui::{style::Style, Frame}; use crate::tuine::{Bounds, DrawContext, Event, LayoutNode, StateContext, Status, TmpComponent}; pub struct TimeGraphData { pub data: Vec<(f64, f64)>, pub label: Option>, pub style: Style, } /// A [`TimeGraph`] is a component that indicates data in a graph form with the time being /// the x-axis. It displays the most recent data at the right, with the recent data /// being at the left. pub struct TimeGraph { display_time: u64, default_time: u64, min_duration: u64, max_duration: u64, time_interval: u64, use_dot: bool, data: Vec, y_bounds: [f64; 2], y_bound_labels: Vec>, reverse_order: bool, } impl TimeGraph {}