Struct Layout

Source
pub struct Layout { /* private fields */ }

Implementations§

Source§

impl Layout

Source

pub fn new() -> Layout

Source

pub fn title(self, title: Title) -> Layout

Source

pub fn show_legend(self, show_legend: bool) -> Layout

Source

pub fn legend(self, legend: Legend) -> Layout

Source

pub fn margin(self, margin: Margin) -> Layout

Source

pub fn auto_size(self, auto_size: bool) -> Layout

Source

pub fn width(self, width: usize) -> Layout

Source

pub fn height(self, height: usize) -> Layout

Source

pub fn font(self, font: Font) -> Layout

Source

pub fn uniform_text(self, uniform_text: UniformText) -> Layout

Source

pub fn separators(self, separators: &str) -> Layout

Source

pub fn paper_background_color<C: Color>( self, paper_background_color: C, ) -> Layout

Source

pub fn plot_background_color<C: Color>(self, plot_background_color: C) -> Layout

Source

pub fn color_scale(self, color_scale: LayoutColorScale) -> Layout

Source

pub fn colorway<C: Color>(self, colorway: Vec<C>) -> Layout

Source

pub fn color_axis(self, color_axis: ColorAxis) -> Layout

Source

pub fn mode_bar(self, mode_bar: ModeBar) -> Layout

Source

pub fn hover_mode(self, hover_mode: HoverMode) -> Layout

Determines the mode of hover interactions. If “closest”, a single hoverlabel will appear for the “closest” point within the hoverdistance. If “x” (or “y”), multiple hoverlabels will appear for multiple points at the “closest” x- (or y-) coordinate within the hoverdistance, with the caveat that no more than one hoverlabel will appear per trace. If “x unified” (or “y unified”), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within the hoverdistance with the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. If clickmode includes the “select” flag, hovermode defaults to “closest”. If clickmode lacks the “select” flag, it defaults to “x” or “y” (depending on the trace’s orientation value) for plots based on cartesian coordinates. For anything else the default value is “closest”.

Source

pub fn click_mode(self, click_mode: &str) -> Layout

Source

pub fn drag_mode(self, drag_mode: &str) -> Layout

Source

pub fn select_direction(self, select_direction: &str) -> Layout

Source

pub fn hover_distance(self, hover_distance: i32) -> Layout

Source

pub fn spike_distance(self, spike_distance: i32) -> Layout

Source

pub fn hover_label(self, hover_label: Label) -> Layout

Source

pub fn grid(self, grid: LayoutGrid) -> Layout

Source

pub fn calendar(self, calendar: Calendar) -> Layout

Source

pub fn x_axis(self, xaxis: Axis) -> Layout

Source

pub fn y_axis(self, yaxis: Axis) -> Layout

Source

pub fn x_axis2(self, xaxis: Axis) -> Layout

Source

pub fn y_axis2(self, yaxis: Axis) -> Layout

Source

pub fn x_axis3(self, xaxis: Axis) -> Layout

Source

pub fn y_axis3(self, yaxis: Axis) -> Layout

Source

pub fn x_axis4(self, xaxis: Axis) -> Layout

Source

pub fn y_axis4(self, yaxis: Axis) -> Layout

Source

pub fn x_axis5(self, xaxis: Axis) -> Layout

Source

pub fn y_axis5(self, yaxis: Axis) -> Layout

Source

pub fn x_axis6(self, xaxis: Axis) -> Layout

Source

pub fn y_axis6(self, yaxis: Axis) -> Layout

Source

pub fn x_axis7(self, xaxis: Axis) -> Layout

Source

pub fn y_axis7(self, yaxis: Axis) -> Layout

Source

pub fn x_axis8(self, xaxis: Axis) -> Layout

Source

pub fn y_axis8(self, yaxis: Axis) -> Layout

Source

pub fn annotations(self, annotations: Vec<Annotation>) -> Layout

Source

pub fn add_annotation(&mut self, annotation: Annotation)

Source

pub fn shapes(self, shapes: Vec<Shape>) -> Layout

Source

pub fn add_shape(&mut self, shape: Shape)

Source

pub fn new_shape(self, new_shape: NewShape) -> Layout

Source

pub fn active_shape(self, active_shape: ActiveShape) -> Layout

Source

pub fn template(self, template: &str) -> Layout

Source

pub fn box_mode(self, box_mode: BoxMode) -> Layout

Source

pub fn box_gap(self, box_gap: f64) -> Layout

Source

pub fn box_group_gap(self, box_group_gap: f64) -> Layout

Source

pub fn bar_mode(self, bar_mode: BarMode) -> Layout

Source

pub fn bar_norm(self, bar_norm: BarNorm) -> Layout

Source

pub fn bar_gap(self, bar_gap: f64) -> Layout

Source

pub fn bar_group_gap(self, bar_group_gap: f64) -> Layout

Source

pub fn violin_mode(self, violin_mode: ViolinMode) -> Layout

Source

pub fn violin_gap(self, violin_gap: f64) -> Layout

Source

pub fn violin_group_gap(self, violin_group_gap: f64) -> Layout

Source

pub fn waterfall_mode(self, waterfall_mode: WaterfallMode) -> Layout

Source

pub fn waterfall_gap(self, waterfall_gap: f64) -> Layout

Source

pub fn waterfall_group_gap(self, waterfall_group_gap: f64) -> Layout

Source

pub fn pie_colorway<C: Color>(self, pie_colorway: Vec<C>) -> Layout

Source

pub fn extend_pie_colors(self, extend_pie_colors: bool) -> Layout

Source

pub fn sunburst_colorway<C: Color>(self, sunburst_colorway: Vec<C>) -> Layout

Source

pub fn extend_sunburst_colors(self, extend_sunburst_colors: bool) -> Layout

Trait Implementations§

Source§

impl Debug for Layout

Source§

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

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

impl Default for Layout

Source§

fn default() -> Layout

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

impl Serialize for Layout

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 Trace for Layout

Auto Trait Implementations§

§

impl Freeze for Layout

§

impl RefUnwindSafe for Layout

§

impl Send for Layout

§

impl Sync for Layout

§

impl Unpin for Layout

§

impl UnwindSafe for Layout

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