pub struct Layout { /* private fields */ }Implementations
sourceimpl Layout
impl Layout
pub fn title(self, value: Title) -> Self
pub fn modify_title(value: Title) -> RelayoutLayout
pub fn show_legend(self, value: bool) -> Self
pub fn modify_show_legend(value: bool) -> RelayoutLayout
pub fn legend(self, value: Legend) -> Self
pub fn modify_legend(value: Legend) -> RelayoutLayout
pub fn margin(self, value: Margin) -> Self
pub fn modify_margin(value: Margin) -> RelayoutLayout
pub fn auto_size(self, value: bool) -> Self
pub fn modify_auto_size(value: bool) -> RelayoutLayout
pub fn width(self, value: usize) -> Self
pub fn modify_width(value: usize) -> RelayoutLayout
pub fn height(self, value: usize) -> Self
pub fn modify_height(value: usize) -> RelayoutLayout
pub fn font(self, value: Font) -> Self
pub fn modify_font(value: Font) -> RelayoutLayout
pub fn uniform_text(self, value: UniformText) -> Self
pub fn modify_uniform_text(value: UniformText) -> RelayoutLayout
pub fn separators(self, value: impl AsRef<str>) -> Self
pub fn modify_separators(value: impl AsRef<str>) -> RelayoutLayout
pub fn paper_background_color(self, value: impl Color) -> Self
pub fn modify_paper_background_color(value: impl Color) -> RelayoutLayout
pub fn plot_background_color(self, value: impl Color) -> Self
pub fn modify_plot_background_color(value: impl Color) -> RelayoutLayout
pub fn color_scale(self, value: LayoutColorScale) -> Self
pub fn modify_color_scale(value: LayoutColorScale) -> RelayoutLayout
pub fn colorway(self, value: Vec<impl Color>) -> Self
pub fn modify_colorway(value: Vec<impl Color>) -> RelayoutLayout
pub fn color_axis(self, value: ColorAxis) -> Self
pub fn modify_color_axis(value: ColorAxis) -> RelayoutLayout
pub fn mode_bar(self, value: ModeBar) -> Self
pub fn modify_mode_bar(value: ModeBar) -> RelayoutLayout
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”.