pub struct Chart { /* private fields */ }Implementations§
Source§impl Chart
impl Chart
pub fn new(candles: &[Candle]) -> Self
Sourcepub fn set_bear_color(&mut self, r: u8, g: u8, b: u8)
pub fn set_bear_color(&mut self, r: u8, g: u8, b: u8)
Set the color of the bearish candle The default color is (234, 74, 90).
Sourcepub fn set_bull_color(&mut self, r: u8, g: u8, b: u8)
pub fn set_bull_color(&mut self, r: u8, g: u8, b: u8)
Set the color of the bullish candle The default color is (52, 208, 88).
Sourcepub fn set_vol_bear_color(&mut self, r: u8, g: u8, b: u8)
pub fn set_vol_bear_color(&mut self, r: u8, g: u8, b: u8)
Sets the color of the volume when the candle is bearish. The default color is (234, 74, 90).
Sourcepub fn set_vol_bull_color(&mut self, r: u8, g: u8, b: u8)
pub fn set_vol_bull_color(&mut self, r: u8, g: u8, b: u8)
Sets the color of the volume when the candle is bullish. The default color is (52, 208, 88).
Sourcepub fn set_volume_pane_enabled(&mut self, enabled: bool)
pub fn set_volume_pane_enabled(&mut self, enabled: bool)
Hide or show the volume pane.
Sourcepub fn set_volume_pane_unicode_fill(&mut self, unicode_fill: char)
pub fn set_volume_pane_unicode_fill(&mut self, unicode_fill: char)
Set the character for drawing the volume bars.
Sourcepub fn set_volume_pane_height(&mut self, height: i64)
pub fn set_volume_pane_height(&mut self, height: i64)
Set the volume pane height. Default is 1/6 of the terminal height.
Auto Trait Implementations§
impl Freeze for Chart
impl !RefUnwindSafe for Chart
impl !Send for Chart
impl !Sync for Chart
impl Unpin for Chart
impl !UnwindSafe for Chart
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