pub struct LegendOption {Show 17 fields
pub data: Vec<String>,
pub show: bool,
pub orient: Option<Orientation>,
pub left: Option<Position>,
pub top: Option<Position>,
pub right: Option<Position>,
pub bottom: Option<Position>,
pub item_width: Option<f64>,
pub item_height: Option<f64>,
pub item_gap: Option<f64>,
pub item_gap_horizontal: Option<f64>,
pub item_gap_vertical: Option<f64>,
pub text_style: Option<LabelOption>,
pub item_style: Option<ItemStyleOption>,
pub selected: Option<Vec<String>>,
pub type_scroll: Option<String>,
pub scroll: Option<String>,
}Expand description
The options of the chart’s legend.
Fields§
§data: Vec<String>The names of the series the legend shows.
show: boolWhether the legend is drawn.
orient: Option<Orientation>The direction the entries are laid out in.
left: Option<Position>The position of the legend.
top: Option<Position>The position of the legend.
right: Option<Position>The position of the legend.
bottom: Option<Position>The position of the legend.
item_width: Option<f64>The width of the legend’s symbol.
item_height: Option<f64>The height of the legend’s symbol.
item_gap: Option<f64>The gap between the legend’s symbol and its label.
item_gap_horizontal: Option<f64>The gap between the legend’s entries.
item_gap_vertical: Option<f64>The gap between the legend’s entries.
text_style: Option<LabelOption>The style of the legend’s labels.
item_style: Option<ItemStyleOption>The style of the legend’s symbols.
selected: Option<Vec<String>>The names of the series that start out hidden.
type_scroll: Option<String>Whether the legend scrolls when it does not fit.
scroll: Option<String>The background colour of the legend’s scrollbar.
Implementations§
Source§impl LegendOption
Inherent implementation of LegendOption.
impl LegendOption
Inherent implementation of LegendOption.
Trait Implementations§
Source§impl Clone for LegendOption
impl Clone for LegendOption
Source§impl Debug for LegendOption
impl Debug for LegendOption
Source§impl Default for LegendOption
impl Default for LegendOption
Source§impl PartialEq for LegendOption
impl PartialEq for LegendOption
impl StructuralPartialEq for LegendOption
Auto Trait Implementations§
impl Freeze for LegendOption
impl RefUnwindSafe for LegendOption
impl Send for LegendOption
impl Sync for LegendOption
impl Unpin for LegendOption
impl UnsafeUnpin for LegendOption
impl UnwindSafe for LegendOption
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