Struct Hoverlabel

Source
pub struct Hoverlabel<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Hoverlabel<'a>

Source

pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self

Sets the background color of the hover labels for this trace

Source

pub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self

Sets the border color of the hover labels for this trace.

Source

pub fn font(&mut self) -> &mut Font<'a>

Sets the font used in hover labels.

Source

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

Source

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>

Source§

fn default() -> Hoverlabel<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for Hoverlabel<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.