pub enum ChartAction {
Highlight {
series_index: usize,
data_index: Option<usize>,
},
Downplay {
series_index: usize,
data_index: Option<usize>,
},
ShowTip {
series_index: usize,
data_index: usize,
x: f64,
y: f64,
},
HideTip,
DataZoom {
start: f64,
end: f64,
},
LegendToggle {
name: String,
},
Restore,
}Expand description
An action a chart can be told to perform.
Actions are the counterpart of events: a chart dispatches events when the user does something, and the application dispatches actions to make the chart do something.
Variants§
Highlight
Highlights a data point.
Fields
Downplay
Removes the highlight from a data point.
Fields
ShowTip
Shows the tooltip at a position.
Fields
HideTip
Hides the tooltip.
DataZoom
Zooms the chart to a window of the data.
start and end are percentages of the whole range.
Fields
LegendToggle
Toggles a legend entry.
Restore
Restores the chart to its initial state.
Trait Implementations§
Source§impl Clone for ChartAction
impl Clone for ChartAction
Source§impl Debug for ChartAction
impl Debug for ChartAction
Source§impl Default for ChartAction
impl Default for ChartAction
Source§impl PartialEq for ChartAction
impl PartialEq for ChartAction
impl StructuralPartialEq for ChartAction
Auto Trait Implementations§
impl Freeze for ChartAction
impl RefUnwindSafe for ChartAction
impl Send for ChartAction
impl Sync for ChartAction
impl Unpin for ChartAction
impl UnsafeUnpin for ChartAction
impl UnwindSafe for ChartAction
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