pub struct ChartOptions {
pub y_min: Option<f64>,
pub y_max: Option<f64>,
pub y_label: Option<String>,
pub x_label: Option<String>,
pub time_range_secs: Option<u64>,
pub stacked: bool,
pub animated: bool,
pub zoomable: bool,
pub pannable: bool,
pub thresholds: Vec<Threshold>,
}
Expand description
Chart-specific options
Fields§
§y_min: Option<f64>
Y-axis minimum value
y_max: Option<f64>
Y-axis maximum value
y_label: Option<String>
Y-axis label
x_label: Option<String>
X-axis label
time_range_secs: Option<u64>
Time range for historical data (in seconds)
stacked: bool
Stack series (for area/bar charts)
animated: bool
Animation enabled
zoomable: bool
Zoom enabled
pannable: bool
Pan enabled
thresholds: Vec<Threshold>
Custom thresholds for gauge charts
Trait Implementations§
Source§impl Clone for ChartOptions
impl Clone for ChartOptions
Source§fn clone(&self) -> ChartOptions
fn clone(&self) -> ChartOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChartOptions
impl Debug for ChartOptions
Source§impl<'de> Deserialize<'de> for ChartOptions
impl<'de> Deserialize<'de> for ChartOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChartOptions
impl RefUnwindSafe for ChartOptions
impl Send for ChartOptions
impl Sync for ChartOptions
impl Unpin for ChartOptions
impl UnwindSafe for ChartOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more