Crate plotters_iced[−][src]
Expand description
The Plotters Iced backend.
This is an implementation of a Iced backend for Plotters.
This backend has been optimized as for speed. Note that some specific plotting features supported in the Bitmap backend may not be implemented there, though.
See the examples for more details.
Example
struct MyChart; impl Chart<Message> for MyChart { fn build_chart<DB:DrawingBackend>(&self, builder: ChartBuilder<DB>) { //build your chart here, please refer to plotters for more details } } impl MyChart { fn view(&mut self)->Element<Message> { ChartWidget::new(self) .width(Length::Unit(200)) .height(Length::Unit(200)) .into() } }
Re-exports
pub extern crate plotters_backend; |
Structs
ChartBuilder | The helper object to create a chart context, which is used for the high-level figure drawing. With the help of this object, we can convert a basic drawing area into a chart context, which allows the high-level charting API being used on the drawing area. |
ChartWidget |
Traits
Chart | Chart View Model |
DrawingBackend | The drawing backend trait, which implements the low-level drawing APIs.
This trait has a set of default implementation. And the minimal requirement of
implementing a drawing backend is implementing the |