pub struct LayoutTemplate { /* private fields */ }
Implementations§
Source§impl LayoutTemplate
impl LayoutTemplate
pub fn title(self, value: impl Into<Title>) -> Self
pub fn show_legend(self, value: bool) -> Self
pub fn legend(self, value: Legend) -> Self
pub fn margin(self, value: Margin) -> Self
pub fn auto_size(self, value: bool) -> Self
pub fn width(self, value: usize) -> Self
pub fn height(self, value: usize) -> Self
pub fn font(self, value: Font) -> Self
pub fn uniform_text(self, value: UniformText) -> Self
pub fn separators(self, value: impl AsRef<str>) -> Self
pub fn paper_background_color(self, value: impl Color) -> Self
pub fn plot_background_color(self, value: impl Color) -> Self
pub fn color_scale(self, value: LayoutColorScale) -> Self
pub fn colorway(self, value: Vec<impl Color>) -> Self
pub fn color_axis(self, value: ColorAxis) -> Self
pub fn mode_bar(self, value: ModeBar) -> Self
Sourcepub fn hover_mode(self, value: HoverMode) -> Self
pub fn hover_mode(self, value: HoverMode) -> Self
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”.
pub fn click_mode(self, value: ClickMode) -> Self
pub fn drag_mode(self, value: DragMode) -> Self
pub fn select_direction(self, value: SelectDirection) -> Self
pub fn hover_distance(self, value: i32) -> Self
pub fn spike_distance(self, value: i32) -> Self
pub fn hover_label(self, value: Label) -> Self
pub fn grid(self, value: LayoutGrid) -> Self
pub fn calendar(self, value: Calendar) -> Self
pub fn x_axis(self, value: Axis) -> Self
pub fn y_axis(self, value: Axis) -> Self
pub fn x_axis2(self, value: Axis) -> Self
pub fn y_axis2(self, value: Axis) -> Self
pub fn x_axis3(self, value: Axis) -> Self
pub fn y_axis3(self, value: Axis) -> Self
pub fn x_axis4(self, value: Axis) -> Self
pub fn y_axis4(self, value: Axis) -> Self
pub fn x_axis5(self, value: Axis) -> Self
pub fn y_axis5(self, value: Axis) -> Self
pub fn x_axis6(self, value: Axis) -> Self
pub fn y_axis6(self, value: Axis) -> Self
pub fn x_axis7(self, value: Axis) -> Self
pub fn y_axis7(self, value: Axis) -> Self
pub fn x_axis8(self, value: Axis) -> Self
pub fn y_axis8(self, value: Axis) -> Self
pub fn scene(self, value: LayoutScene) -> Self
pub fn annotations(self, value: Vec<Annotation>) -> Self
pub fn shapes(self, value: Vec<Shape>) -> Self
pub fn new_shape(self, value: NewShape) -> Self
pub fn active_shape(self, value: ActiveShape) -> Self
pub fn box_mode(self, value: BoxMode) -> Self
pub fn box_gap(self, value: f64) -> Self
pub fn box_group_gap(self, value: f64) -> Self
pub fn bar_mode(self, value: BarMode) -> Self
pub fn bar_norm(self, value: BarNorm) -> Self
pub fn bar_gap(self, value: f64) -> Self
pub fn bar_group_gap(self, value: f64) -> Self
pub fn violin_mode(self, value: ViolinMode) -> Self
pub fn violin_gap(self, value: f64) -> Self
pub fn violin_group_gap(self, value: f64) -> Self
pub fn waterfall_mode(self, value: WaterfallMode) -> Self
pub fn waterfall_gap(self, value: f64) -> Self
pub fn waterfall_group_gap(self, value: f64) -> Self
pub fn pie_colorway(self, value: Vec<impl Color>) -> Self
pub fn extend_pie_colors(self, value: bool) -> Self
pub fn sunburst_colorway(self, value: Vec<impl Color>) -> Self
pub fn extend_sunburst_colors(self, value: bool) -> Self
Source§impl LayoutTemplate
impl LayoutTemplate
pub fn new() -> Self
pub fn add_annotation(&mut self, annotation: Annotation)
pub fn add_shape(&mut self, shape: Shape)
Trait Implementations§
Source§impl Clone for LayoutTemplate
impl Clone for LayoutTemplate
Source§fn clone(&self) -> LayoutTemplate
fn clone(&self) -> LayoutTemplate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more