[−][src]Struct plotters::chart::SeriesLabelStyle
The struct to sepcify the series label of a target chart context
Methods
impl<'a, 'b, DB: DrawingBackend + 'a, CT: CoordTranslate> SeriesLabelStyle<'a, 'b, DB, CT>
[src]
pub fn position(&mut self, pos: SeriesLabelPosition) -> &mut Self
[src]
Set the series label positioning style
pos
- The positioning style
pub fn margin(&mut self, value: u32) -> &mut Self
[src]
pub fn legend_area_size(&mut self, size: u32) -> &mut Self
[src]
Set the size of legend area
size
- The size of legend area in pixel
pub fn border_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self
[src]
Set the style of the label series area
style
- The style of the border
pub fn background_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self
[src]
Set the background style
style
- The style of the border
pub fn label_font<F: Into<TextStyle<'b>>>(&mut self, font: F) -> &mut Self
[src]
Set the series label font
font
- The font
pub fn draw(&mut self) -> Result<(), DrawingAreaErrorKind<DB::ErrorType>>
[src]
Draw the series label area
Auto Trait Implementations
impl<'a, 'b, DB, CT> !Send for SeriesLabelStyle<'a, 'b, DB, CT>
impl<'a, 'b, DB, CT> !Sync for SeriesLabelStyle<'a, 'b, DB, CT>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,