pub struct ItemStyleOption {
pub color: Option<String>,
pub border_color: Option<String>,
pub border_width: Option<f64>,
pub border_radius: Option<f64>,
pub shadow: Option<ShadowOption>,
pub opacity: Option<f64>,
pub gradient: Option<(String, String)>,
}Expand description
The fill, stroke, and shadow of a shape, as configured on a series or a data point.
Fields§
§color: Option<String>The fill colour, as a CSS colour string.
border_color: Option<String>The fill colour of the border.
border_width: Option<f64>The width of the border.
border_radius: Option<f64>The radius of the border’s rounded corners.
shadow: Option<ShadowOption>The shadow cast by the shape.
opacity: Option<f64>The opacity of the shape.
gradient: Option<(String, String)>A gradient fill, as [from, to] in chart coordinates.
Implementations§
Source§impl ItemStyleOption
Inherent implementation of ItemStyleOption.
impl ItemStyleOption
Inherent implementation of ItemStyleOption.
Trait Implementations§
Source§impl Clone for ItemStyleOption
impl Clone for ItemStyleOption
Source§impl Debug for ItemStyleOption
impl Debug for ItemStyleOption
Source§impl Default for ItemStyleOption
impl Default for ItemStyleOption
Source§impl PartialEq for ItemStyleOption
impl PartialEq for ItemStyleOption
impl StructuralPartialEq for ItemStyleOption
Auto Trait Implementations§
impl Freeze for ItemStyleOption
impl RefUnwindSafe for ItemStyleOption
impl Send for ItemStyleOption
impl Sync for ItemStyleOption
impl Unpin for ItemStyleOption
impl UnsafeUnpin for ItemStyleOption
impl UnwindSafe for ItemStyleOption
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