pub struct ChartData {
pub main_series: Box<dyn Series>,
pub overlays: Vec<Box<dyn Series>>,
/* private fields */
}Expand description
Chart data wrapper that provides efficient access patterns for rendering
Fields§
§main_series: Box<dyn Series>The primary series (drives the x-axis)
overlays: Vec<Box<dyn Series>>Additional series (indicators, overlays)
Implementations§
Source§impl ChartData
impl ChartData
Sourcepub fn time_range(&self) -> Option<TimeRange>
pub fn time_range(&self) -> Option<TimeRange>
Get time range for all data
Sourcepub fn set_visible_range(&mut self, range: TimeRange)
pub fn set_visible_range(&mut self, range: TimeRange)
Set the visible time range for efficient rendering
Sourcepub fn clear_visible_range(&mut self)
pub fn clear_visible_range(&mut self)
Clear the visible range (show all data)
Sourcepub fn visible_indices(&self) -> Option<(usize, usize)>
pub fn visible_indices(&self) -> Option<(usize, usize)>
Get indices for the visible range
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChartData
impl !RefUnwindSafe for ChartData
impl Send for ChartData
impl Sync for ChartData
impl Unpin for ChartData
impl UnsafeUnpin for ChartData
impl !UnwindSafe for ChartData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more