pub struct Rangeselector<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Rangeselector<'a>
impl<'a> Rangeselector<'a>
Sourcepub fn visible(&mut self, visible: bool) -> &mut Self
pub fn visible(&mut self, visible: bool) -> &mut Self
Determines whether or not this range selector is visible. Note that range selectors are only available for x axes of type
set to or auto-typed to date.
Sourcepub fn x(&mut self, x: f64) -> &mut Self
pub fn x(&mut self, x: f64) -> &mut Self
Sets the x position (in normalized coordinates) of the range selector.
Sourcepub fn xanchor(&mut self, xanchor: Xanchor) -> &mut Self
pub fn xanchor(&mut self, xanchor: Xanchor) -> &mut Self
Sets the range selector’s horizontal position anchor. This anchor binds the x
position to the left, center or right of the range selector.
default: left
Sourcepub fn y(&mut self, y: f64) -> &mut Self
pub fn y(&mut self, y: f64) -> &mut Self
Sets the y position (in normalized coordinates) of the range selector.
Sourcepub fn yanchor(&mut self, yanchor: Yanchor) -> &mut Self
pub fn yanchor(&mut self, yanchor: Yanchor) -> &mut Self
Sets the range selector’s vertical position anchor This anchor binds the y
position to the top, middle or bottom of the range selector.
default: bottom
Sourcepub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
Sets the background color of the range selector buttons.
default: #eee
Sourcepub fn activecolor(&mut self, activecolor: &'a str) -> &mut Self
pub fn activecolor(&mut self, activecolor: &'a str) -> &mut Self
Sets the background color of the active range selector button.
Sourcepub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self
pub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self
Sets the color of the border enclosing the range selector.
default: #444
Sourcepub fn borderwidth(&mut self, borderwidth: f64) -> &mut Self
pub fn borderwidth(&mut self, borderwidth: f64) -> &mut Self
Sets the width (in px) of the border enclosing the range selector.
default: 0