[−][src]Struct plotters::element::CandleStick
The candlestick data point element
Methods
impl<X: Clone, Y: PartialOrd> CandleStick<X, Y>
[src]
pub fn new<GS: Into<ShapeStyle>, LS: Into<ShapeStyle>>(
x: X,
open: Y,
high: Y,
low: Y,
close: Y,
gain_style: GS,
loss_style: LS,
width: u32
) -> Self
[src]
x: X,
open: Y,
high: Y,
low: Y,
close: Y,
gain_style: GS,
loss_style: LS,
width: u32
) -> Self
Create a new candlestick element, which requires the Y coordinate can be compared
x
: The x coordinateopen
: The open valuehigh
: The high valuelow
: The low valueclose
: The close valuegain_style
: The style for gainloss_style
: The style for losswidth
: The width- returns The newly created candlestick element
use chrono::prelude::*; use plotters::prelude::*; let candlestick = CandleStick::new(Local::now(), 130.0600, 131.3700, 128.8300, 129.1500, &GREEN, &RED, 15);
Trait Implementations
impl<'a, X: 'a, Y: PartialOrd + 'a> PointCollection<'a, (X, Y)> for &'a CandleStick<X, Y>
[src]
type Borrow = &'a (X, Y)
The item in point iterator
type IntoIter = &'a [(X, Y)]
The point iterator
fn point_iter(self) -> &'a [(X, Y)]
[src]
impl<X, Y: PartialOrd, DB: DrawingBackend> Drawable<DB> for CandleStick<X, Y>
[src]
Auto Trait Implementations
impl<X, Y> Send for CandleStick<X, Y> where
X: Send,
Y: Send,
X: Send,
Y: Send,
impl<X, Y> Unpin for CandleStick<X, Y> where
X: Unpin,
Y: Unpin,
X: Unpin,
Y: Unpin,
impl<X, Y> Sync for CandleStick<X, Y> where
X: Sync,
Y: Sync,
X: Sync,
Y: Sync,
impl<X, Y> UnwindSafe for CandleStick<X, Y> where
X: UnwindSafe,
Y: UnwindSafe,
X: UnwindSafe,
Y: UnwindSafe,
impl<X, Y> RefUnwindSafe for CandleStick<X, Y> where
X: RefUnwindSafe,
Y: RefUnwindSafe,
X: RefUnwindSafe,
Y: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,