[][src]Struct plotly_types::traces::histogram::Hoverlabel

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

Implementations

impl<'a> Hoverlabel<'a>[src]

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

Sets the background color of the hover labels for this trace

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

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

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

Sets the font used in hover labels.

pub fn align(&mut self, align: Align) -> &mut Self[src]

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

pub fn namelength(&mut self, namelength: u64) -> &mut Self[src]

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

impl<'a> Default for Hoverlabel<'a>[src]

impl<'a> Serialize for Hoverlabel<'a>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.