pub struct ChartOptions {
pub theme: Theme,
pub time_zone: Box<dyn TimeZoneProvider>,
pub ohlc_validation: ValidationMode,
pub bar_spacing: Css,
pub min_bar_spacing: Css,
pub max_bar_spacing: Css,
pub right_offset: f64,
}Expand description
Options of a new chart.
§Examples
use ferrochart_core::{Chart, ChartOptions};
use ferrochart_core::theme::Theme;
let chart = Chart::new(ChartOptions { theme: Theme::dark(), ..ChartOptions::default() });Fields§
§theme: ThemeColors and sizes.
time_zone: Box<dyn TimeZoneProvider>Time zone for time labels.
ohlc_validation: ValidationModeHandling of bars that violate the OHLC constraints.
bar_spacing: CssInitial bar spacing.
min_bar_spacing: CssLower bound of the bar spacing (further limited by the data size).
max_bar_spacing: CssUpper bound of the bar spacing.
right_offset: f64Initial empty space right of the last bar, in bars.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChartOptions
impl !Sync for ChartOptions
impl !UnwindSafe for ChartOptions
impl Forget for ChartOptions
impl Freeze for ChartOptions
impl Move for ChartOptions
impl Send for ChartOptions
impl Unpin for ChartOptions
impl UnsafeUnpin for ChartOptions
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