dioxus_charts/
lib.rs

1/*!
2A simple chart components library for Dioxus
3
4This crate provides some basic SVG-based chart components, customizable with
5CSS, to be used with the [Dioxus] GUI library. The components configuration
6was designed to be similar to what one would find in JavaScript chart libraries.
7
8The components available are:
9
10- [PieChart](crate::charts::PieChart): for Pie, Donut and Gauge charts
11- [BarChart](crate::charts::BarChart): for Bar and Stacked Bar charts, vertical
12or horizontal
13- [LineChart](crate::charts::LineChart)
14
15# Usage
16This crate is [on crates.io](https://crates.io/crates/dioxus-charts) and can be
17used by adding `dioxus-charts` to your dependencies in your project's `Cargo.toml`.
18
19```toml
20[dependencies]
21dioxus-charts = "0.1.3"
22```
23
24[Dioxus]: https://dioxuslabs.com/
25*/
26
27#![deny(missing_docs)]
28
29mod grid;
30mod types;
31mod utils;
32
33pub mod charts {
34    //! Chart components
35    //!
36    //! This module contains all the charts available:
37    //! - [PieChart](crate::charts::PieChart)
38    //! - [BarChart](crate::charts::BarChart)
39    //! - [LineChart](crate::charts::LineChart)
40
41    /// Module for the [BarChart](pie::PieChart) component and its configuration types
42    pub mod bar;
43    /// Module for the [LineChart](pie::PieChart) component and its configuration types
44    pub mod line;
45    /// Module for the [PieChart](pie::PieChart) component and its configuration types
46    pub mod pie;
47
48    pub use bar::BarChart;
49    pub use line::LineChart;
50    pub use pie::PieChart;
51}
52
53pub use crate::charts::{BarChart, LineChart, PieChart};