charts_rs/
charts.rs

1// Licensed under the Apache License, Version 2.0 (the "License");
2// you may not use this file except in compliance with the License.
3// You may obtain a copy of the License at
4//
5//     http://www.apache.org/licenses/LICENSE-2.0
6//
7// Unless required by applicable law or agreed to in writing, software
8// distributed under the License is distributed on an "AS IS" BASIS,
9// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10// See the License for the specific language governing permissions and
11// limitations under the License.
12
13mod bar_chart;
14mod candlestick_chart;
15mod canvas;
16mod color;
17mod common;
18mod component;
19#[cfg(feature = "image-encoder")]
20mod encoder;
21mod font;
22mod heatmap_chart;
23mod horizontal_bar_chart;
24mod line_chart;
25mod multi_chart;
26mod params;
27mod path;
28mod pie_chart;
29mod radar_chart;
30mod scatter_chart;
31mod table_chart;
32mod theme;
33mod util;
34
35pub use bar_chart::BarChart;
36pub use canvas::Canvas;
37pub use canvas::Error as CanvasError;
38pub use canvas::Result as CanvasResult;
39pub use color::*;
40pub use common::*;
41pub use component::{
42    Axis, Circle, Grid, Legend, LegendCategory, Line, Pie, Polygon, Polyline, Rect, SmoothLine,
43    SmoothLineFill, StraightLine, StraightLineFill, Text,
44};
45#[cfg(feature = "image-encoder")]
46pub(crate) use encoder::get_or_init_fontdb;
47#[cfg(feature = "image-encoder")]
48pub use encoder::Error as EncoderError;
49#[cfg(feature = "image-encoder")]
50pub use encoder::*;
51
52pub use candlestick_chart::CandlestickChart;
53pub use font::Error as FontError;
54pub use font::{
55    get_font, get_font_families, get_or_try_init_fonts, measure_text_width_family,
56    DEFAULT_FONT_DATA, DEFAULT_FONT_FAMILY,
57};
58pub use heatmap_chart::{HeatmapChart, HeatmapData, HeatmapSeries};
59pub use horizontal_bar_chart::HorizontalBarChart;
60pub use line_chart::LineChart;
61pub use multi_chart::{ChildChart, MultiChart};
62pub use path::*;
63pub use pie_chart::PieChart;
64pub use radar_chart::{RadarChart, RadarIndicator};
65pub use scatter_chart::ScatterChart;
66pub use table_chart::{TableCellStyle, TableChart};
67pub use theme::Theme;
68pub use theme::{add_theme, get_theme, list_theme_name, THEME_ANT, THEME_DARK, THEME_GRAFANA};
69pub use util::*;