pub struct TooltipOption {Show 14 fields
pub show: bool,
pub trigger: TriggerType,
pub formatter: Option<String>,
pub background_color: Option<String>,
pub border_color: Option<String>,
pub border_width: Option<f64>,
pub padding: Option<(f64, f64, f64, f64)>,
pub text_style: Option<LabelOption>,
pub position: Option<Vec<f64>>,
pub confine: Option<bool>,
pub axis_pointer: Option<AxisPointerOption>,
pub extra_css_text: Option<String>,
pub transition_duration: Option<f64>,
pub order: Option<String>,
}Expand description
The options of the chart’s tooltip.
Fields§
§show: boolWhether the tooltip is drawn.
trigger: TriggerTypeWhat the tooltip describes.
formatter: Option<String>The formatter of the tooltip’s content.
background_color: Option<String>The background colour of the tooltip.
border_color: Option<String>The border colour of the tooltip.
border_width: Option<f64>The border width of the tooltip.
padding: Option<(f64, f64, f64, f64)>The padding inside the tooltip.
text_style: Option<LabelOption>The style of the tooltip’s text.
position: Option<Vec<f64>>The position of the tooltip, as [x, y] percentages.
confine: Option<bool>Whether the tooltip follows the pointer.
axis_pointer: Option<AxisPointerOption>Whether the tooltip is shown when the pointer is over the axis.
extra_css_text: Option<String>The extra CSS applied to the tooltip’s element.
transition_duration: Option<f64>The transition of the tooltip.
order: Option<String>The order the tooltip’s entries are sorted in.
Implementations§
Source§impl TooltipOption
Inherent implementation of TooltipOption.
impl TooltipOption
Inherent implementation of TooltipOption.
Source§impl TooltipOption
impl TooltipOption
pub fn get_show(&self) -> bool
pub fn get_mut_show(&mut self) -> &mut bool
pub fn set_show(&mut self, val: bool) -> &mut Self
pub fn get_trigger(&self) -> TriggerType
pub fn get_mut_trigger(&mut self) -> &mut TriggerType
pub fn set_trigger(&mut self, val: TriggerType) -> &mut Self
pub fn get_formatter(&self) -> Option<String>
pub fn try_get_formatter(&self) -> Option<String>
pub fn get_mut_formatter(&mut self) -> &mut Option<String>
pub fn set_formatter(&mut self, val: Option<String>) -> &mut Self
pub fn get_background_color(&self) -> Option<String>
pub fn try_get_background_color(&self) -> Option<String>
pub fn get_mut_background_color(&mut self) -> &mut Option<String>
pub fn set_background_color(&mut self, val: Option<String>) -> &mut Self
pub fn get_border_color(&self) -> Option<String>
pub fn try_get_border_color(&self) -> Option<String>
pub fn get_mut_border_color(&mut self) -> &mut Option<String>
pub fn set_border_color(&mut self, val: Option<String>) -> &mut Self
pub fn get_border_width(&self) -> Option<f64>
pub fn try_get_border_width(&self) -> Option<f64>
pub fn get_mut_border_width(&mut self) -> &mut Option<f64>
pub fn set_border_width(&mut self, val: Option<f64>) -> &mut Self
pub fn get_padding(&self) -> Option<(f64, f64, f64, f64)>
pub fn try_get_padding(&self) -> Option<(f64, f64, f64, f64)>
pub fn get_mut_padding(&mut self) -> &mut Option<(f64, f64, f64, f64)>
pub fn set_padding(&mut self, val: Option<(f64, f64, f64, f64)>) -> &mut Self
pub fn get_text_style(&self) -> Option<LabelOption>
pub fn try_get_text_style(&self) -> Option<LabelOption>
pub fn get_mut_text_style(&mut self) -> &mut Option<LabelOption>
pub fn set_text_style(&mut self, val: Option<LabelOption>) -> &mut Self
pub fn get_position(&self) -> Option<Vec<f64>>
pub fn try_get_position(&self) -> Option<Vec<f64>>
pub fn get_mut_position(&mut self) -> &mut Option<Vec<f64>>
pub fn set_position(&mut self, val: Option<Vec<f64>>) -> &mut Self
pub fn get_confine(&self) -> Option<bool>
pub fn try_get_confine(&self) -> Option<bool>
pub fn get_mut_confine(&mut self) -> &mut Option<bool>
pub fn set_confine(&mut self, val: Option<bool>) -> &mut Self
pub fn get_axis_pointer(&self) -> Option<AxisPointerOption>
pub fn try_get_axis_pointer(&self) -> Option<AxisPointerOption>
pub fn get_mut_axis_pointer(&mut self) -> &mut Option<AxisPointerOption>
pub fn set_axis_pointer(&mut self, val: Option<AxisPointerOption>) -> &mut Self
pub fn get_extra_css_text(&self) -> Option<String>
pub fn try_get_extra_css_text(&self) -> Option<String>
pub fn get_mut_extra_css_text(&mut self) -> &mut Option<String>
pub fn set_extra_css_text(&mut self, val: Option<String>) -> &mut Self
pub fn get_transition_duration(&self) -> Option<f64>
pub fn try_get_transition_duration(&self) -> Option<f64>
pub fn get_mut_transition_duration(&mut self) -> &mut Option<f64>
pub fn set_transition_duration(&mut self, val: Option<f64>) -> &mut Self
pub fn get_order(&self) -> Option<String>
pub fn try_get_order(&self) -> Option<String>
pub fn get_mut_order(&mut self) -> &mut Option<String>
pub fn set_order(&mut self, val: Option<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for TooltipOption
impl Clone for TooltipOption
Source§impl Debug for TooltipOption
impl Debug for TooltipOption
Source§impl Default for TooltipOption
impl Default for TooltipOption
Source§impl PartialEq for TooltipOption
impl PartialEq for TooltipOption
impl StructuralPartialEq for TooltipOption
Auto Trait Implementations§
impl Freeze for TooltipOption
impl RefUnwindSafe for TooltipOption
impl Send for TooltipOption
impl Sync for TooltipOption
impl Unpin for TooltipOption
impl UnsafeUnpin for TooltipOption
impl UnwindSafe for TooltipOption
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