pub struct LineView { /* private fields */ }
Expand description
LineView represents a single line.
Implementations§
Source§impl LineView
impl LineView
Sourcepub fn new(x_scale: BandScale, y_scale: LinearScale) -> Self
pub fn new(x_scale: BandScale, y_scale: LinearScale) -> Self
Create a new LineView.
Sourcepub fn set_stroke_color(self, stroke_color: Color) -> Self
pub fn set_stroke_color(self, stroke_color: Color) -> Self
Set line stroke color.
Sourcepub fn set_point_fill_color(self, point_fill_color: Color) -> Self
pub fn set_point_fill_color(self, point_fill_color: Color) -> Self
Set fill color for the point.
Sourcepub fn set_point_stroke_color(self, point_stroke_color: Color) -> Self
pub fn set_point_stroke_color(self, point_stroke_color: Color) -> Self
Set stroke color for the point.
Sourcepub fn set_point_type(self, point_type: PointType) -> Self
pub fn set_point_type(self, point_type: PointType) -> Self
Set type of the point.
Sourcepub fn set_point_visible(self, point_visible: bool) -> Self
pub fn set_point_visible(self, point_visible: bool) -> Self
Set point visibility.
Sourcepub fn set_point_label_visible(self, point_label_visible: bool) -> Self
pub fn set_point_label_visible(self, point_label_visible: bool) -> Self
Set point label visibility.
Sourcepub fn set_point_label_position(
self,
point_label_position: PointLabelPosition,
) -> Self
pub fn set_point_label_position( self, point_label_position: PointLabelPosition, ) -> Self
Set label position for the point.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineView
impl RefUnwindSafe for LineView
impl Send for LineView
impl Sync for LineView
impl Unpin for LineView
impl UnwindSafe for LineView
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