Skip to main content

Module line

Module line 

Source
Expand description

Line chart builder methods.

This module extends LineArtist with a fluent API for configuring line chart properties. Since [Axes::plot] returns Result<&mut LineArtist>, these builder methods can be chained directly on the return value:

ax.plot(&x, &y)?
    .color(Color::rgb(0.2, 0.4, 0.8))
    .width(2.0)
    .style(LineStyle::Dashed)
    .label("Series A")
    .alpha(0.9);