pub struct ChartStyle<'a> {
pub palette: &'a [Color],
pub separator: Color,
pub bar_radius: f32,
pub max_bar_width: f32,
}Expand description
More about the look of a chart, for draw_styled.
Fields§
§palette: &'a [Color]Slice and legend colors of pie and doughnut charts, repeated as needed;
PALETTE when empty.
separator: ColorWhat separates slices and rings the last dot of a ChartKind::SparkArea:
usually the color behind the chart.
bar_radius: f32Corner radius of bars.
max_bar_width: f32The widest a bar can be, so few bars in a wide chart stay bars.
Trait Implementations§
Source§impl<'a> Clone for ChartStyle<'a>
impl<'a> Clone for ChartStyle<'a>
Source§fn clone(&self) -> ChartStyle<'a>
fn clone(&self) -> ChartStyle<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ChartStyle<'a>
Source§impl<'a> Debug for ChartStyle<'a>
impl<'a> Debug for ChartStyle<'a>
Source§impl Default for ChartStyle<'_>
impl Default for ChartStyle<'_>
Source§fn default() -> ChartStyle<'_>
fn default() -> ChartStyle<'_>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ChartStyle<'a>
impl<'a> RefUnwindSafe for ChartStyle<'a>
impl<'a> Send for ChartStyle<'a>
impl<'a> Sync for ChartStyle<'a>
impl<'a> Unpin for ChartStyle<'a>
impl<'a> UnsafeUnpin for ChartStyle<'a>
impl<'a> UnwindSafe for ChartStyle<'a>
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