pub struct HeatmapOptions {
pub tick_size: f64,
pub row_size: u32,
pub column_ms: i64,
pub source: HeatmapSource,
pub scale: ColorScale,
pub range: HeatmapRange,
pub auto_scale: bool,
pub colors: HeatmapColors,
}Expand description
Options of a Heatmap.
Fields§
§tick_size: f64Minimum price increment.
row_size: u32Ticks per row.
column_ms: i64Column length, ms (e.g. 1 000; may be finer than the candles). Columns start at multiples of it (UTC).
source: HeatmapSourceDepth snapshots or trades.
scale: ColorScaleLog or linear colors.
range: HeatmapRangeRange of the colors.
auto_scale: boolWhether the heatmap’s levels take part in auto scaling. Off by default: a book usually spans far more than the candles.
colors: HeatmapColorsColors.
Implementations§
Source§impl HeatmapOptions
impl HeatmapOptions
Sourcepub fn new(tick_size: f64, column_ms: i64, source: HeatmapSource) -> Self
pub fn new(tick_size: f64, column_ms: i64, source: HeatmapSource) -> Self
One tick per row, log colors from 0 to the visible p99, no auto scaling, the default colors.
Trait Implementations§
Source§impl Clone for HeatmapOptions
impl Clone for HeatmapOptions
impl Copy for HeatmapOptions
Source§impl Debug for HeatmapOptions
impl Debug for HeatmapOptions
Source§impl PartialEq for HeatmapOptions
impl PartialEq for HeatmapOptions
impl StructuralPartialEq for HeatmapOptions
Auto Trait Implementations§
impl Forget for HeatmapOptions
impl Freeze for HeatmapOptions
impl Move for HeatmapOptions
impl RefUnwindSafe for HeatmapOptions
impl Send for HeatmapOptions
impl Sync for HeatmapOptions
impl Unpin for HeatmapOptions
impl UnsafeUnpin for HeatmapOptions
impl UnwindSafe for HeatmapOptions
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