pub struct ChartEvent {
pub event_type: ChartEventType,
pub series_index: Option<usize>,
pub data_index: Option<usize>,
pub series_name: String,
pub name: String,
pub value: Option<f64>,
pub x: f64,
pub y: f64,
pub offset_x: f64,
pub offset_y: f64,
}Expand description
An event a chart emits.
Fields§
§event_type: ChartEventTypeThe kind of the event.
series_index: Option<usize>The index of the series the event happened on.
data_index: Option<usize>The index of the data point the event happened on.
series_name: StringThe name of the series the event happened on.
name: StringThe name of the data point the event happened on.
value: Option<f64>The value of the data point the event happened on.
x: f64The horizontal position of the pointer, in canvas pixels.
y: f64The vertical position of the pointer, in canvas pixels.
offset_x: f64The horizontal position of the pointer, relative to the canvas.
offset_y: f64The vertical position of the pointer, relative to the canvas.
Trait Implementations§
Source§impl Clone for ChartEvent
impl Clone for ChartEvent
Source§impl Debug for ChartEvent
impl Debug for ChartEvent
Source§impl Default for ChartEvent
impl Default for ChartEvent
Source§impl PartialEq for ChartEvent
impl PartialEq for ChartEvent
impl StructuralPartialEq for ChartEvent
Auto Trait Implementations§
impl Freeze for ChartEvent
impl RefUnwindSafe for ChartEvent
impl Send for ChartEvent
impl Sync for ChartEvent
impl Unpin for ChartEvent
impl UnsafeUnpin for ChartEvent
impl UnwindSafe for ChartEvent
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