pub struct Rangeslider<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Rangeslider<'a>
impl<'a> Rangeslider<'a>
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 slider.
default: #fff
Sourcepub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self
pub fn bordercolor(&mut self, bordercolor: &'a str) -> &mut Self
Sets the border color of the range slider.
default: #444
Sourcepub fn borderwidth(&mut self, borderwidth: u64) -> &mut Self
pub fn borderwidth(&mut self, borderwidth: u64) -> &mut Self
Sets the border width of the range slider.
default: 0
Sourcepub fn autorange(&mut self, autorange: bool) -> &mut Self
pub fn autorange(&mut self, autorange: bool) -> &mut Self
Determines whether or not the range slider range is computed in relation to the input data. If range
is provided, then autorange
is set to false.
default: true
Sourcepub fn range(&mut self, range: &'a InfoArray) -> &mut Self
pub fn range(&mut self, range: &'a InfoArray) -> &mut Self
Sets the range of the range slider. If not set, defaults to the full xaxis range. If the axis type
is log, then you must take the log of your desired range. If the axis type
is date, it should be date strings, like date data, though Date objects and unix milliseconds will be accepted and converted to strings. If the axis type
is category, it should be numbers, using the scale where each category is assigned a serial number from zero in the order it appears.
Sourcepub fn thickness(&mut self, thickness: f64) -> &mut Self
pub fn thickness(&mut self, thickness: f64) -> &mut Self
The height of the range slider as a fraction of the total plot area height.
default: 0.15
Sourcepub fn visible(&mut self, visible: bool) -> &mut Self
pub fn visible(&mut self, visible: bool) -> &mut Self
Determines whether or not the range slider will be visible. If visible, perpendicular axes will be set to fixedrange
default: true