pub struct Hoverlabel<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Hoverlabel<'a>
impl<'a> Hoverlabel<'a>
Sourcepub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
Sets the background color of all hover labels on graph
Sourcepub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self
pub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self
Sets the border color of all hover labels on graph.
Sourcepub fn font(&mut self) -> &mut Font<'a>
pub fn font(&mut self) -> &mut Font<'a>
Sets the default hover label font used by all traces on the graph.
Sourcepub fn align(&mut self, align: Align) -> &mut Self
pub fn align(&mut self, align: Align) -> &mut Self
Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
default: auto
Sourcepub fn namelength(&mut self, namelength: u64) -> &mut Self
pub fn namelength(&mut self, namelength: u64) -> &mut Self
Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to namelength - 3
characters and add an ellipsis.
default: 15
Trait Implementations§
Source§impl<'a> Default for Hoverlabel<'a>
impl<'a> Default for Hoverlabel<'a>
Source§fn default() -> Hoverlabel<'a>
fn default() -> Hoverlabel<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for Hoverlabel<'a>
impl<'a> RefUnwindSafe for Hoverlabel<'a>
impl<'a> Send for Hoverlabel<'a>
impl<'a> Sync for Hoverlabel<'a>
impl<'a> Unpin for Hoverlabel<'a>
impl<'a> UnwindSafe for Hoverlabel<'a>
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