#[non_exhaustive]pub struct ChartPalette {
pub background: Color,
pub grid: Color,
pub axis: Color,
pub label: Color,
pub line: Color,
pub up: Color,
pub down: Color,
pub crosshair: Color,
pub marker: Color,
pub marker_text: Color,
}Expand description
Chart colors: ChartPalette::new is the dark default; change its fields for others.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.background: ColorBehind the plot and its labels.
grid: ColorGridlines at the ticks.
axis: ColorThe plot’s bottom and right edges.
label: ColorTick labels.
line: ColorA line series without a color of its own.
up: ColorRising values: candles that closed up.
down: ColorFalling values: candles that closed down.
crosshair: ColorThe crosshair’s lines.
marker: ColorBehind the crosshair’s values.
marker_text: ColorThe crosshair’s values.
Implementations§
Source§impl ChartPalette
impl ChartPalette
Trait Implementations§
Source§impl Clone for ChartPalette
impl Clone for ChartPalette
impl Copy for ChartPalette
Source§impl Debug for ChartPalette
impl Debug for ChartPalette
Source§impl Default for ChartPalette
impl Default for ChartPalette
Source§impl PartialEq for ChartPalette
impl PartialEq for ChartPalette
impl StructuralPartialEq for ChartPalette
Auto Trait Implementations§
impl Freeze for ChartPalette
impl RefUnwindSafe for ChartPalette
impl Send for ChartPalette
impl Sync for ChartPalette
impl Unpin for ChartPalette
impl UnsafeUnpin for ChartPalette
impl UnwindSafe for ChartPalette
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