pub enum PriceScaleMode {
Normal,
Logarithmic,
Percentage,
IndexedTo100,
}Expand description
Price scale mode.
In Percentage and IndexedTo100 mode every series of the scale is
normalized to its own first visible value (the close of the first visible
bar, or the first visible value of a value series), so series with
different price levels can be compared. The scale’s range, ticks,
labels and crosshair price are then in percent / index points.
Variants§
Normal
Linear prices.
Logarithmic
Logarithmic prices.
Percentage
Percent change from the first visible value: (p - base) / |base| × 100.
IndexedTo100
Indexed to 100 at the first visible value: p / |base| × 100.
Implementations§
Source§impl PriceScaleMode
impl PriceScaleMode
Sourcepub fn is_relative(self) -> bool
pub fn is_relative(self) -> bool
Whether values are normalized to a per-series base.
Trait Implementations§
Source§impl Clone for PriceScaleMode
impl Clone for PriceScaleMode
impl Copy for PriceScaleMode
Source§impl Debug for PriceScaleMode
impl Debug for PriceScaleMode
Source§impl Default for PriceScaleMode
impl Default for PriceScaleMode
impl Eq for PriceScaleMode
Source§impl Hash for PriceScaleMode
impl Hash for PriceScaleMode
Source§impl PartialEq for PriceScaleMode
impl PartialEq for PriceScaleMode
impl StructuralPartialEq for PriceScaleMode
Auto Trait Implementations§
impl Forget for PriceScaleMode
impl Freeze for PriceScaleMode
impl Move for PriceScaleMode
impl RefUnwindSafe for PriceScaleMode
impl Send for PriceScaleMode
impl Sync for PriceScaleMode
impl Unpin for PriceScaleMode
impl UnsafeUnpin for PriceScaleMode
impl UnwindSafe for PriceScaleMode
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