Struct Bar

Source
pub struct Bar<X, Y>{ /* private fields */ }

Implementations§

Source§

impl<X, Y> Bar<X, Y>

Source

pub fn new(x: Vec<X>, y: Vec<Y>) -> Box<Bar<X, Y>>

Source

pub fn name(self, name: &str) -> Box<Bar<X, Y>>

Source

pub fn visible(self, visible: bool) -> Box<Bar<X, Y>>

Source

pub fn show_legend(self, show_legend: bool) -> Box<Bar<X, Y>>

Source

pub fn legend_group(self, legend_group: &str) -> Box<Bar<X, Y>>

Source

pub fn opacity(self, opacity: f64) -> Box<Bar<X, Y>>

Source

pub fn ids<S: AsRef<str>>(self, ids: Vec<S>) -> Box<Bar<X, Y>>

Source

pub fn width(self, width: usize) -> Box<Bar<X, Y>>

Source

pub fn offset(self, offset: usize) -> Box<Bar<X, Y>>

Source

pub fn offset_array(self, offset: Vec<usize>) -> Box<Bar<X, Y>>

Source

pub fn text(self, text: &str) -> Box<Bar<X, Y>>

Source

pub fn text_array<S: AsRef<str>>(self, text: Vec<S>) -> Box<Bar<X, Y>>

Source

pub fn text_position(self, text_position: TextPosition) -> Box<Bar<X, Y>>

Source

pub fn text_position_array( self, text_position: Vec<TextPosition>, ) -> Box<Bar<X, Y>>

Source

pub fn text_template(self, text_template: &str) -> Box<Bar<X, Y>>

Source

pub fn text_template_array<S: AsRef<str>>( self, text_template: Vec<S>, ) -> Box<Bar<X, Y>>

Source

pub fn hover_text(self, hover_text: &str) -> Box<Bar<X, Y>>

Source

pub fn hover_text_array<S: AsRef<str>>( self, hover_text: Vec<S>, ) -> Box<Bar<X, Y>>

Source

pub fn hover_info(self, hover_info: HoverInfo) -> Box<Bar<X, Y>>

Source

pub fn hover_template(self, hover_template: &str) -> Box<Bar<X, Y>>

Source

pub fn x_axis(self, axis: &str) -> Box<Bar<X, Y>>

Source

pub fn y_axis(self, axis: &str) -> Box<Bar<X, Y>>

Source

pub fn hover_template_array<S: AsRef<str>>( self, hover_template: Vec<S>, ) -> Box<Bar<X, Y>>

Source

pub fn orientation(self, orientation: Orientation) -> Box<Bar<X, Y>>

Source

pub fn alignment_group(self, alignment_group: &str) -> Box<Bar<X, Y>>

Source

pub fn offset_group(self, offset_group: &str) -> Box<Bar<X, Y>>

Source

pub fn marker(self, marker: Marker) -> Box<Bar<X, Y>>

Source

pub fn text_angle(self, text_angle: f64) -> Box<Bar<X, Y>>

Source

pub fn text_font(self, text_font: Font) -> Box<Bar<X, Y>>

Source

pub fn error_x(self, error_x: ErrorData) -> Box<Bar<X, Y>>

Source

pub fn error_y(self, error_y: ErrorData) -> Box<Bar<X, Y>>

Source

pub fn clip_on_axis(self, clip_on_axis: bool) -> Box<Bar<X, Y>>

Source

pub fn constrain_text(self, constrain_text: ConstrainText) -> Box<Bar<X, Y>>

Source

pub fn hover_label(self, hover_label: Label) -> Box<Bar<X, Y>>

Source

pub fn inside_text_anchor( self, inside_text_anchor: TextAnchor, ) -> Box<Bar<X, Y>>

Source

pub fn inside_text_font(self, inside_text_font: Font) -> Box<Bar<X, Y>>

Source

pub fn outside_text_font(self, outside_text_font: Font) -> Box<Bar<X, Y>>

Source

pub fn x_calendar(self, x_calendar: Calendar) -> Box<Bar<X, Y>>

Source

pub fn y_calendar(self, y_calendar: Calendar) -> Box<Bar<X, Y>>

Trait Implementations§

Source§

impl<X, Y> Debug for Bar<X, Y>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<X, Y> Default for Bar<X, Y>

Source§

fn default() -> Bar<X, Y>

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

impl<X, Y> Serialize for Bar<X, Y>

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
Source§

impl<X, Y> Trace for Bar<X, Y>

Auto Trait Implementations§

§

impl<X, Y> Freeze for Bar<X, Y>

§

impl<X, Y> RefUnwindSafe for Bar<X, Y>

§

impl<X, Y> Send for Bar<X, Y>
where X: Send, Y: Send,

§

impl<X, Y> Sync for Bar<X, Y>
where X: Sync, Y: Sync,

§

impl<X, Y> Unpin for Bar<X, Y>
where X: Unpin, Y: Unpin,

§

impl<X, Y> UnwindSafe for Bar<X, Y>
where X: UnwindSafe, Y: UnwindSafe,

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V