• Home
Name Date Size #Lines LOC

..--

.cargo/03-May-2024-32

benches/03-May-2024-4837

examples/03-May-2024-2,5062,173

src/03-May-2024-16,39511,322

.cargo_vcs_info.jsonD03-May-2024102 66

.gitignoreD03-May-2024157 1111

Android.bpD03-May-20241.1 KiB4743

Cargo.lock.savedD03-May-202431.1 KiB1,2631,128

Cargo.tomlD03-May-20244.2 KiB190164

Cargo.toml.origD03-May-20243.5 KiB128108

LICENSED03-May-20241.1 KiB2217

METADATAD03-May-2024665 2422

MODULE_LICENSE_MITD03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-202424.7 KiB602456

TEST_MAPPINGD03-May-2024337 1817

cargo2android.jsonD03-May-202488 55

clippy.tomlD03-May-202413 11

README.md

1# Plotters - A Rust drawing library focus on data plotting for both WASM and native applications  ������
2
3<a href="https://crates.io/crates/plotters">
4    <img style="display: inline!important" src="https://img.shields.io/crates/v/plotters.svg"></img>
5</a>
6<a href="https://docs.rs/plotters">
7    <img style="display: inline!important" src="https://docs.rs/plotters/badge.svg"></img>
8</a>
9<a href="https://docs.rs/plotters">
10    <img style="display: inline!important" src="https://img.shields.io/crates/d/plotters"></img>
11</a>
12<a href="https://plotters-rs.github.io/rustdoc/plotters/">
13	<img style="display: inline! important" src="https://img.shields.io/badge/docs-development-lightgrey.svg"></img>
14</a>
15
16Plotters is drawing library designed for rendering figures, plots, and charts, in pure rust. Plotters supports various types of back-ends,
17including bitmap, vector graph, piston window, GTK/Cairo and WebAssembly.
18
19- A new Plotters Developer's Guide is working in progress. The preview version is available at [here](https://plotters-rs.github.io/book).
20- To try Plotters with interactive Jupyter notebook, or view [here](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html) for the static HTML version.
21- To view the WASM example, go to this [link](https://plotters-rs.github.io/wasm-demo/www/index.html)
22- Currently we have all the internal code ready for console plotting, but a console based backend is still not ready. See [this example](https://github.com/38/plotters/blob/master/examples/console.rs) for how to plotting on Console with a customized backend.
23- Plotters now moved all backend code to sperate repositories, check [FAQ list](#faq-list) for details
24- Some interesting [demo projects](#demo-projects) are available, feel free to try them out.
25
26## Gallery
27
28To view the source code for each example, please click on the example image.
29
30<a href="https://github.com/38/plotters/blob/master/plotters/examples/chart.rs">
31    <img src="https://plotters-rs.github.io/plotters-doc-data/sample.png" class="galleryItem" width=200px></img>
32</a>
33
34<a href="https://github.com/38/plotters/blob/master/plotters/examples/stock.rs">
35    <img src="https://plotters-rs.github.io/plotters-doc-data/stock.png" class="galleryItem" width=200px></img>
36</a>
37
38<a href="https://github.com/38/plotters/blob/master/plotters/examples/histogram.rs">
39    <img src="https://plotters-rs.github.io/plotters-doc-data/histogram.png" class="galleryItem" width=200px></img>
40</a>
41
42<a href="https://github.com/38/plotters#quick-start">
43    <img src="https://plotters-rs.github.io/plotters-doc-data/0.png" class="galleryItem" width=200px></img>
44</a>
45
46<a href="#">
47	<img src="https://plotters-rs.github.io/plotters-doc-data/console-2.png" class="galleryItem" width=200px></img>
48</a>
49
50<a href="https://github.com/38/plotters/blob/master/plotters/examples/mandelbrot.rs">
51    <img src="https://plotters-rs.github.io/plotters-doc-data/mandelbrot.png" class="galleryItem" width=200px></img>
52</a>
53
54<a href="https://github.com/38/plotters#trying-with-jupyter-evcxr-kernel-interactively">
55    <img src="https://plotters-rs.github.io/plotters-doc-data/evcxr_animation.gif" class="galleryItem" width=200px></img>
56</a>
57
58
59<a href="https://github.com/plotters-rs/plotters-piston/blob/master/plotters/examples/cpustat.rs">
60    <img src="https://plotters-rs.github.io/plotters-doc-data/plotters-piston.gif" class="galleryItem" width=200px></img>
61</a>
62
63<a href="https://github.com/38/plotters/blob/master/plotters/examples/normal-dist.rs">
64    <img src="https://plotters-rs.github.io/plotters-doc-data/normal-dist.png" class="galleryItem" width=200px></img>
65</a>
66
67<a href="https://github.com/38/plotters/blob/master/plotters/examples/two-scales.rs">
68    <img src="https://plotters-rs.github.io/plotters-doc-data/twoscale.png" class="galleryItem" width=200px></img>
69</a>
70
71<a href="https://github.com/38/plotters/blob/master/plotters/examples/matshow.rs">
72    <img src="https://plotters-rs.github.io/plotters-doc-data/matshow.png" class="galleryItem" width=200px></img>
73</a>
74
75<a href="https://github.com/38/plotters/blob/master/plotters/examples/sierpinski.rs">
76	<img src="https://plotters-rs.github.io/plotters-doc-data/sierpinski.png" class="galleryItem" width=200px></img>
77</a>
78
79<a href="https://github.com/38/plotters/blob/master/plotters/examples/normal-dist2.rs">
80	<img src="https://plotters-rs.github.io/plotters-doc-data/normal-dist2.png" class="galleryItem" width=200px></img>
81</a>
82
83<a href="https://github.com/38/plotters/blob/master/plotters/examples/errorbar.rs">
84	<img src="https://plotters-rs.github.io/plotters-doc-data/errorbar.png" class="galleryItem" width=200px></img>
85</a>
86
87<a href="https://github.com/38/plotters/blob/master/plotters/examples/slc-temp.rs">
88	<img src="https://plotters-rs.github.io/plotters-doc-data/slc-temp.png" class="galleryItem" width=200px></img>
89</a>
90
91<a href="https://github.com/38/plotters/blob/master/plotters/examples/area-chart.rs">
92	<img src="https://plotters-rs.github.io/plotters-doc-data/area-chart.png" class="galleryItem" width=200px></img>
93</a>
94
95<a href="https://github.com/38/plotters/blob/master/plotters/examples/snowflake.rs">
96	<img src="https://plotters-rs.github.io/plotters-doc-data/snowflake.png" class="galleryItem" width=200px></img>
97</a>
98
99<a href="https://github.com/38/plotters/blob/master/plotters/examples/animation.rs">
100	<img src="https://plotters-rs.github.io/plotters-doc-data/animation.gif" class="galleryItem" width=200px></img>
101</a>
102
103<a href="https://github.com/38/plotters/blob/master/plotters/examples/console.rs">
104	<img src="https://plotters-rs.github.io/plotters-doc-data/console-example.png" class="galleryItem" width=200px></img>
105</a>
106
107<a href="https://github.com/38/plotters/blob/master/plotters/examples/console.rs">
108	<img src="https://plotters-rs.github.io/plotters-doc-data/console.png" class="galleryItem" width=200px></img>
109</a>
110
111<a href="https://github.com/38/plotters/blob/master/plotters/examples/blit-bitmap.rs">
112	<img src="https://plotters-rs.github.io/plotters-doc-data/blit-bitmap.png" class="galleryItem" width=200px></img>
113</a>
114
115<a href="https://github.com/38/plotters/blob/master/plotters/examples/boxplot.rs">
116	<img src="https://plotters-rs.github.io/plotters-doc-data/boxplot.svg" class="galleryItem" width=200px></img>
117</a>
118
119<a href="https://github.com/38/plotters/blob/master/plotters/examples/3d-plot.rs">
120	<img src="https://plotters-rs.github.io/plotters-doc-data/3d-plot.svg" class="galleryItem" width=200px></img>
121</a>
122
123<a href="https://github.com/38/plotters/blob/master/plotters/examples/3d-plot2.rs">
124	<img src="https://plotters-rs.github.io/plotters-doc-data/3d-plot2.gif" class="galleryItem" width=200px></img>
125</a>
126
127<a href="https://github.com/38/plotters/blob/master/plotters/examples/tick_control.rs">
128	<img src="https://plotters-rs.github.io/plotters-doc-data/tick_control.svg" class="galleryItem" width=200px></img>
129</a>
130
131
132## Table of Contents
133  * [Gallery](#gallery)
134  * [Dependencies](#dependencies)
135    + [Ubuntu Linux](#ubuntu-linux)
136  * [Quick Start](#quick-start)
137  * [Demo Projects](#demo-projects)
138  * [Trying with Jupyter evcxr Kernel Interactively](#trying-with-jupyter-evcxr-kernel-interactively)
139  * [Interactive Tutorial with Jupyter Notebook](#interactive-tutorial-with-jupyter-notebook)
140  * [Plotting in Rust](#plotting-in-rust)
141  * [Plotting on HTML5 canvas with WASM Backend](#plotting-on-html5-canvas-with-wasm-backend)
142  * [What types of figure are supported?](#what-types-of-figure-are-supported)
143  * [Concepts by examples](#concepts-by-examples)
144    + [Drawing Back-ends](#drawing-back-ends)
145    + [Drawing Area](#drawing-area)
146    + [Elements](#elements)
147    + [Composable Elements](#composable-elements)
148    + [Chart Context](#chart-context)
149  * [Misc](#misc)
150    + [Development Version](#development-version)
151    + [Reducing Depending Libraries && Turning Off Backends](#reducing-depending-libraries--turning-off-backends)
152    + [List of Features](#list-of-features)
153  * [FAQ List](#faq-list)
154
155## Dependencies
156
157### Ubuntu Linux
158
159 ```sudo apt install pkg-config libfreetype6-dev libfontconfig1-dev```
160
161## Quick Start
162
163To use Plotters, you can simply add Plotters into your `Cargo.toml`
164```toml
165[dependencies]
166plotters = "0.3.1"
167```
168
169And the following code draws a quadratic function. `src/main.rs`,
170
171```rust
172use plotters::prelude::*;
173fn main() -> Result<(), Box<dyn std::error::Error>> {
174    let root = BitMapBackend::new("plotters-doc-data/0.png", (640, 480)).into_drawing_area();
175    root.fill(&WHITE)?;
176    let mut chart = ChartBuilder::on(&root)
177        .caption("y=x^2", ("sans-serif", 50).into_font())
178        .margin(5)
179        .x_label_area_size(30)
180        .y_label_area_size(30)
181        .build_cartesian_2d(-1f32..1f32, -0.1f32..1f32)?;
182
183    chart.configure_mesh().draw()?;
184
185    chart
186        .draw_series(LineSeries::new(
187            (-50..=50).map(|x| x as f32 / 50.0).map(|x| (x, x * x)),
188            &RED,
189        ))?
190        .label("y = x^2")
191        .legend(|(x, y)| PathElement::new(vec![(x, y), (x + 20, y)], &RED));
192
193    chart
194        .configure_series_labels()
195        .background_style(&WHITE.mix(0.8))
196        .border_style(&BLACK)
197        .draw()?;
198
199    root.present()?;
200
201    Ok(())
202}
203```
204
205![](https://plotters-rs.github.io/plotters-doc-data/0.png)
206
207## Demo Projects
208
209To learn how to use Plotters in different scenarios by checking out the following demo projects:
210
211- WebAssembly + Plotters: [plotters-wasm-demo](https://github.com/plotters-rs/plotters-wasm-demo)
212- minifb + Plotters: [plotters-minifb-demo](https://github.com/plotters-rs/plotters-minifb-demo)
213- GTK + Plotters: [plotters-gtk-demo](https://github.com/plotters-rs/plotters-gtk-demo)
214
215
216## Trying with Jupyter evcxr Kernel Interactively
217
218Plotters now supports integrate with `evcxr` and is able to interactively drawing plots in Jupyter Notebook.
219The feature `evcxr` should be enabled when including Plotters to Jupyter Notebook.
220
221The following code shows a minimal example of this.
222
223```text
224:dep plotters = { git = "https://github.com/38/plotters", default_features = false, features = ["evcxr"] }
225extern crate plotters;
226use plotters::prelude::*;
227
228let figure = evcxr_figure((640, 480), |root| {
229    root.fill(&WHITE)?;
230    let mut chart = ChartBuilder::on(&root)
231        .caption("y=x^2", ("Arial", 50).into_font())
232        .margin(5)
233        .x_label_area_size(30)
234        .y_label_area_size(30)
235        .build_cartesian_2d(-1f32..1f32, -0.1f32..1f32)?;
236
237    chart.configure_mesh().draw()?;
238
239    chart.draw_series(LineSeries::new(
240        (-50..=50).map(|x| x as f32 / 50.0).map(|x| (x, x * x)),
241        &RED,
242    )).unwrap()
243        .label("y = x^2")
244        .legend(|(x,y)| PathElement::new(vec![(x,y), (x + 20,y)], &RED));
245
246    chart.configure_series_labels()
247        .background_style(&WHITE.mix(0.8))
248        .border_style(&BLACK)
249        .draw()?;
250    Ok(())
251});
252figure
253```
254
255<img src="https://plotters-rs.github.io/plotters-doc-data/evcxr_animation.gif" width="450px"></img>
256
257## Interactive Tutorial with Jupyter Notebook
258
259*This tutorial is now working in progress and isn't complete*
260
261Thanks to the evcxr, now we have an interactive tutorial for Plotters!
262To use the interactive notebook, you must have Jupyter and evcxr installed on your computer.
263Follow the instruction on [this page](https://github.com/google/evcxr/tree/master/evcxr_jupyter) below to install it.
264
265After that, you should be able to start your Jupyter server locally and load the tutorial!
266
267```bash
268git clone https://github.com/38/plotters-doc-data
269cd plotteres-doc-data
270jupyter notebook
271```
272
273And select the notebook called `evcxr-jupyter-integration.ipynb`.
274
275Also, there's a static HTML version of this notebook available at the [this location](https://plotters-rs.github.io/plotters-doc-data/evcxr-jupyter-integration.html)
276
277## Plotting in Rust
278
279Rust is a perfect language for data visualization. Although there are many mature visualization libraries in many different languages.
280But Rust is one of the best languages fits the need.
281
282* **Easy to use** Rust has a very good iterator system built into the standard library. With the help of iterators,
283Plotting in Rust can be as easy as most of the high-level programming languages. The Rust based plotting library
284can be very easy to use.
285
286* **Fast** If you need rendering a figure with trillions of data points,
287Rust is a good choice. Rust's performance allows you to combine data processing step
288and rendering step into a single application. When plotting in high-level programming languages,
289e.g. Javascript or Python, data points must be down-sampled before feeding into the plotting
290program because of the performance considerations. Rust is fast enough to do the data processing and visualization
291within a single program. You can also integrate the
292figure rendering code into your application handling a huge amount of data and visualize it in real-time.
293
294* **WebAssembly Support** Rust is one of few the language with the best WASM support. Plotting in Rust could be
295very useful for visualization on a web page and would have a huge performance improvement comparing to Javascript.
296
297## Plotting on HTML5 canvas with WASM Backend
298
299Plotters currently supports backend that uses the HTML5 canvas. To use the WASM support, you can simply use
300`CanvasBackend` instead of other backend and all other API remains the same!
301
302There's a small demo for Plotters + WASM available at [here](https://github.com/plotters-rs/plotters-wasm-demo).
303To play with the deployed version, follow this [link](https://plotters-rs.github.io/wasm-demo/www/index.html).
304
305
306## What types of figure are supported?
307
308Plotters is not limited to any specific type of figure.
309You can create your own types of figures easily with the Plotters API.
310
311But Plotters provides some builtin figure types for convenience.
312Currently, we support line series, point series, candlestick series, and histogram.
313And the library is designed to be able to render multiple figure into a single image.
314But Plotter is aimed to be a platform that is fully extendable to support any other types of figure.
315
316## Concepts by examples
317
318### Drawing Back-ends
319Plotters can use different drawing back-ends, including SVG, BitMap, and even real-time rendering. For example, a bitmap drawing backend.
320
321```rust
322use plotters::prelude::*;
323fn main() -> Result<(), Box<dyn std::error::Error>> {
324    // Create a 800*600 bitmap and start drawing
325    let mut backend = BitMapBackend::new("plotters-doc-data/1.png", (300, 200));
326    // And if we want SVG backend
327    // let backend = SVGBackend::new("output.svg", (800, 600));
328    backend.draw_rect((50, 50), (200, 150), &RED, true)?;
329    backend.present()?;
330    Ok(())
331}
332```
333
334![](https://plotters-rs.github.io/plotters-doc-data/1.png)
335
336### Drawing Area
337Plotters uses a concept called drawing area for layout purpose.
338Plotters support multiple integrating into a single image.
339This is done by creating sub-drawing-areas.
340
341Besides that, the drawing area also allows the customized coordinate system, by doing so, the coordinate mapping is done by the drawing area automatically.
342
343```rust
344use plotters::prelude::*;
345fn main() -> Result<(), Box<dyn std::error::Error>> {
346    let root_drawing_area =
347        BitMapBackend::new("plotters-doc-data/2.png", (300, 200)).into_drawing_area();
348    // And we can split the drawing area into 3x3 grid
349    let child_drawing_areas = root_drawing_area.split_evenly((3, 3));
350    // Then we fill the drawing area with different color
351    for (area, color) in child_drawing_areas.into_iter().zip(0..) {
352        area.fill(&Palette99::pick(color))?;
353    }
354    root_drawing_area.present()?;
355    Ok(())
356}
357```
358
359![](https://plotters-rs.github.io/plotters-doc-data/2.png)
360
361### Elements
362
363In Plotters, elements are build blocks of figures. All elements are able to draw on a drawing area.
364There are different types of built-in elements, like lines, texts, circles, etc.
365You can also define your own element in the application code.
366
367You may also combine existing elements to build a complex element.
368
369To learn more about the element system, please read the [element module documentation](./element/index.html).
370
371```rust
372use plotters::prelude::*;
373fn main() -> Result<(), Box<dyn std::error::Error>> {
374    let root = BitMapBackend::new("plotters-doc-data/3.png", (300, 200)).into_drawing_area();
375    root.fill(&WHITE)?;
376    // Draw an circle on the drawing area
377    root.draw(&Circle::new(
378        (100, 100),
379        50,
380        Into::<ShapeStyle>::into(&GREEN).filled(),
381    ))?;
382    root.present()?;
383    Ok(())
384}
385```
386
387![](https://plotters-rs.github.io/plotters-doc-data/3.png)
388
389### Composable Elements
390
391Besides the built-in elements, elements can be composed into a logic group we called composed elements.
392When composing new elements, the upper-left corner is given in the target coordinate, and a new pixel-based
393coordinate which has the upper-left corner defined as `(0,0)` is used for further element composition purpose.
394
395For example, we can have an element which includes a dot and its coordinate.
396
397```rust
398use plotters::prelude::*;
399use plotters::coord::types::RangedCoordf32;
400
401fn main() -> Result<(), Box<dyn std::error::Error>> {
402    let root = BitMapBackend::new("plotters-doc-data/4.png", (640, 480)).into_drawing_area();
403
404    root.fill(&RGBColor(240, 200, 200))?;
405
406    let root = root.apply_coord_spec(Cartesian2d::<RangedCoordf32, RangedCoordf32>::new(
407        0f32..1f32,
408        0f32..1f32,
409        (0..640, 0..480),
410    ));
411
412    let dot_and_label = |x: f32, y: f32| {
413        return EmptyElement::at((x, y))
414            + Circle::new((0, 0), 3, ShapeStyle::from(&BLACK).filled())
415            + Text::new(
416                format!("({:.2},{:.2})", x, y),
417                (10, 0),
418                ("sans-serif", 15.0).into_font(),
419            );
420    };
421
422    root.draw(&dot_and_label(0.5, 0.6))?;
423    root.draw(&dot_and_label(0.25, 0.33))?;
424    root.draw(&dot_and_label(0.8, 0.8))?;
425    root.present()?;
426    Ok(())
427}
428```
429
430![](https://plotters-rs.github.io/plotters-doc-data/4.png)
431
432### Chart Context
433
434In order to draw a chart, Plotters need a data object built on top of the drawing area called `ChartContext`.
435The chart context defines even higher level constructs compare to the drawing area.
436For example, you can define the label areas, meshes, and put a data series onto the drawing area with the help
437of the chart context object.
438
439```rust
440use plotters::prelude::*;
441fn main() -> Result<(), Box<dyn std::error::Error>> {
442    let root = BitMapBackend::new("plotters-doc-data/5.png", (640, 480)).into_drawing_area();
443    root.fill(&WHITE);
444    let root = root.margin(10, 10, 10, 10);
445    // After this point, we should be able to draw construct a chart context
446    let mut chart = ChartBuilder::on(&root)
447        // Set the caption of the chart
448        .caption("This is our first plot", ("sans-serif", 40).into_font())
449        // Set the size of the label region
450        .x_label_area_size(20)
451        .y_label_area_size(40)
452        // Finally attach a coordinate on the drawing area and make a chart context
453        .build_cartesian_2d(0f32..10f32, 0f32..10f32)?;
454
455    // Then we can draw a mesh
456    chart
457        .configure_mesh()
458        // We can customize the maximum number of labels allowed for each axis
459        .x_labels(5)
460        .y_labels(5)
461        // We can also change the format of the label text
462        .y_label_formatter(&|x| format!("{:.3}", x))
463        .draw()?;
464
465    // And we can draw something in the drawing area
466    chart.draw_series(LineSeries::new(
467        vec![(0.0, 0.0), (5.0, 5.0), (8.0, 7.0)],
468        &RED,
469    ))?;
470    // Similarly, we can draw point series
471    chart.draw_series(PointSeries::of_element(
472        vec![(0.0, 0.0), (5.0, 5.0), (8.0, 7.0)],
473        5,
474        &RED,
475        &|c, s, st| {
476            return EmptyElement::at(c)    // We want to construct a composed element on-the-fly
477            + Circle::new((0,0),s,st.filled()) // At this point, the new pixel coordinate is established
478            + Text::new(format!("{:?}", c), (10, 0), ("sans-serif", 10).into_font());
479        },
480    ))?;
481    root.present()?;
482    Ok(())
483}
484```
485
486![](https://plotters-rs.github.io/plotters-doc-data/5.png)
487
488## Misc
489
490### Development Version
491
492Find the latest development version of Plotters on [GitHub](https://github.com/38/plotters.git).
493Clone the repository and learn more about the Plotters API and ways to contribute. Your help is needed!
494
495If you want to add the development version of Plotters to your project, add the following to your `Cargo.toml`:
496
497```toml
498[dependencies]
499plotters = { git = "https://github.com/38/plotters.git" }
500```
501
502### Reducing Depending Libraries && Turning Off Backends
503Plotters now supports use features to control the backend dependencies. By default, `BitMapBackend` and `SVGBackend` are supported,
504use `default_features = false` in the dependency description in `Cargo.toml` and you can cherry-pick the backend implementations.
505
506- `svg` Enable the `SVGBackend`
507- `bitmap` Enable the `BitMapBackend`
508
509For example, the following dependency description would avoid compiling with bitmap support:
510
511```toml
512[dependencies]
513plotters = { git = "https://github.com/38/plotters.git", default_features = false, features = ["svg"] }
514```
515
516The library also allows consumers to make use of the [`Palette`](https://crates.io/crates/palette/) crate's color types by default.
517This behavior can also be turned off by setting `default_features = false`.
518
519### List of Features
520
521This is the full list of features that is defined by `Plotters` crate.
522Use `default_features = false` to disable those default enabled features,
523and then you should be able to cherry-pick what features you want to include into `Plotters` crate.
524By doing so, you can minimize the number of dependencies down to only `itertools` and compile time is less than 6s.
525
526The following list is a complete list of features that can be opt in and out.
527
528- Tier 1 drawing backends
529
530| Name    |  Description | Additional Dependency |Default?|
531|---------|--------------|--------|------------|
532| bitmap\_encoder  | Allow `BitMapBackend` save the result to bitmap files | image, rusttype, font-kit | Yes |
533| svg\_backend     | Enable `SVGBackend` Support | None | Yes |
534| bitmap\_gif| Opt-in GIF animation Rendering support for `BitMapBackend`, implies `bitmap` enabled | gif | Yes |
535
536- Font manipulation features
537
538| Name    |  Description | Additional Dependency |Default?|
539|---------|--------------|--------|------------|
540| ttf | Allows TrueType font support | rusttype, font-kit | Yes |
541
542- Coordinate features
543
544| Name    |  Description | Additional Dependency |Default?|
545|---------|--------------|--------|------------|
546| datetime | Enable the date and time coordinate support | chrono | Yes |
547
548- Element, series and util functions
549
550| Name    |  Description | Additional Dependency |Default?|
551|---------|--------------|--------|------------|
552| errorbar | The errorbar element support | None | Yes |
553| candlestick | The candlestick element support | None | Yes |
554| boxplot | The boxplot element support | None | Yes |
555| area\_series | The area series support | None | Yes |
556| line\_series | The line series support | None | Yes |
557| histogram | The histogram series support | None | Yes |
558| point\_series| The point series support | None | Yes |
559
560- Misc
561
562| Name    |  Description | Additional Dependency |Default?|
563|---------|--------------|--------|------------|
564| deprecated\_items | This feature allows use of deprecated items which is going to be removed in the future | None | Yes |
565| debug | Enable the code used for debugging | None | No |
566
567
568## FAQ List
569
570* Why does the WASM example break on my machine ?
571
572	The WASM example requires using `wasm32` target to build. Using `cargo build` is likely to use the default target
573	which in most of the case is any of the x86 target. Thus you need add `--target=wasm32-unknown-unknown` in the cargo
574	parameter list  to build it.
575
576* How to draw text/circle/point/rectangle/... on the top of chart ?
577
578	As you may realized, Plotters is a drawing library rather than a traditional data plotting library,
579	you have the freedom to draw anything you want on the drawing area.
580	Use `DrawingArea::draw` to draw any element on the drawing area.
581
582* Where can I find the backend code ?
583
584	Since Plotters 0.3, all drawing backends are independent crate from the main Plotters crate.
585	Use the following link to find the backend code:
586
587	- [Bitmap Backend](https://github.com/plotters-rs/plotters-bitmap.git)
588	- [SVG Backend](https://github.com/plotters-rs/plotters-svg.git)
589	- [HTML5 Canvas Backend](https://github.com/plotters-rs/plotters-canvas.git)
590	- [GTK/Cairo Backend](https://github.com/plotters-rs/plotters-cairo.git)
591
592* How to check if a backend writes file successfully ?
593
594	The behavior of Plotters backend is consistent with standard library.
595    When the backend instance is being dropped, [`crate::drawing::DrawingArea::present()`] or `Backend::present()` is called automatically
596    whenever is needed. When the `present()` method is called from `drop`, any error will be silently ignored.
597
598    In the case that error handling is important, you need manually call the `present()` method before the backend gets dropped.
599	For more information, please see the examples.
600
601
602