Struct astrup::chart::line::Line [] [src]

pub struct Line { /* fields omitted */ }

Line struct

With this chart, one is able to display data using lines. Straight lines are drawn between coordinates, determined by the input data points. You can e.g. alter the line color, the dash pattern, and the stroke style.

Note The input can be any data container that implements the AsArray trait (e.g. a Vec, or ndarray Array), but the contained data must be f64. Ideally, this should be any integer or float, but I have not been able to implement a generic over them also. This is perhaps connected to things like higher kinded types and the like, which I think will come soon.

Methods

impl Line
[src]

[src]

Create and return a new Line chart

[src]

Set the line color

[src]

Set the line color

[src]

Set the line color

[src]

Set the line width

[src]

Set the style of the line. Plain, left stair, or right stair.

[src]

Set the stroke style of the line

[src]

Set the length of the ``on duration'' of a dash in a dash line

[src]

Set the length of the ``off duration'' of a dash in a dash line

[src]

Set the offset of the line dash pattern

[src]

Set the line cap of the line dash pattern

Trait Implementations

impl Clone for Line
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Line
[src]

[src]

Formats the value using the given formatter.

impl Drawable for Line
[src]

[src]

[src]

[src]

impl Plottable for Line
[src]

[src]

[src]

[src]

[src]

[src]

[src]