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