pub struct DataZoomOption {Show 20 fields
pub zoom_type: DataZoomType,
pub x_axis_index: Option<usize>,
pub y_axis_index: Option<usize>,
pub grid_index: Option<usize>,
pub start: Option<f64>,
pub end: Option<f64>,
pub start_value: Option<f64>,
pub end_value: Option<f64>,
pub show: bool,
pub filler_color: Option<String>,
pub border_color: Option<String>,
pub border_width: Option<f64>,
pub handle_size: Option<String>,
pub label: Option<LabelOption>,
pub background_color: Option<String>,
pub data: Vec<DataValue>,
pub move_handle_size: Option<String>,
pub zoom_lock: Option<bool>,
pub disabled: Option<bool>,
pub throttle: Option<f64>,
}Expand description
The options of one data-zoom control.
Fields§
§zoom_type: DataZoomTypeThe kind of the control.
x_axis_index: Option<usize>The index of the x-axis the control zooms.
y_axis_index: Option<usize>The index of the y-axis the control zooms.
grid_index: Option<usize>The index of the grid the control zooms.
start: Option<f64>The start of the zoom window, as a percentage.
end: Option<f64>The end of the zoom window, as a percentage.
start_value: Option<f64>The start of the zoom window, as a data index.
end_value: Option<f64>The end of the zoom window, as a data index.
show: boolWhether the control is drawn.
filler_color: Option<String>The colour of the selected region.
border_color: Option<String>The border colour of the selected region.
border_width: Option<f64>The width of the selected region’s border.
handle_size: Option<String>The handle size of the slider.
label: Option<LabelOption>The label of the slider.
background_color: Option<String>The background colour of the slider.
data: Vec<DataValue>The data the control zooms over.
move_handle_size: Option<String>The colour of the moved region.
zoom_lock: Option<bool>The brush style of the inside control.
disabled: Option<bool>Whether the inside control is disabled.
throttle: Option<f64>The throttle of the control’s response, in milliseconds.