pub struct SeriesAnno<'a, DB: DrawingBackend> { /* private fields */ }
Expand description

The annotations (such as the label of the series, the legend element, etc) When a series is drawn onto a drawing area, an series annotation object is created and a mutable reference is returned.

Implementations

Sets the series label for the current series.

See ChartContext::configure_series_labels() for more information and examples.

Sets the legend element creator function.

  • func: The function use to create the element
Note

The creation function uses a shifted pixel-based coordinate system, where the point (0,0) is defined to the mid-right point of the shape.

See also

See ChartContext::configure_series_labels() for more information and examples.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.