1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
//! Chart widgets - Data visualization components
//!
//! This module provides comprehensive chart and graph widgets for visualizing data.
//! Includes statistical charts, time series, sparklines, and more.
//!
//! # Chart Categories
//!
//! ## Statistical Charts
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`BarChart`] | Bar chart with categories | [`barchart()`] |
//! | [`Histogram`] | Frequency distribution | [`histogram()`] |
//! | [`BoxPlot`] | Box-and-whisker plot | [`boxplot()`] |
//! | [`ScatterChart`] | Scatter/bubble plot | [`scatter_chart()`] |
//! | [`HeatMap`] | Heat map visualization | [`heatmap()`] |
//!
//! ## Time Series
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`TimeSeries`] | Time series chart | [`time_series()`] |
//! | [`Sparkline`] | Inline mini chart | [`sparkline()`] |
//! | [`Waveline`] | Wave/audio waveform | [`waveline()`] |
//!
//! ## Advanced Charts
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Chart`] | Generic line/area chart | [`chart()`], [`line_chart()`] |
//! | [`PieChart`] | Pie/donut chart | [`pie_chart()`], [`donut_chart()`] |
//! | [`CandleChart`] | Candlestick/OHLC chart | [`candle_chart()`] |
//!
//! # Quick Start
//!
//! ## Bar Chart
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! let data = vec![
//! ("Jan", 100),
//! ("Feb", 150),
//! ("Mar", 200),
//! ];
//!
//! barchart()
//! .data(data)
//! .width(40)
//! .height(10);
//! ```
//!
//! ## Line Chart
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! let data = vec![
//! (1, 10),
//! (2, 25),
//! (3, 15),
//! (4, 30),
//! ];
//!
//! line_chart()
//! .series(data)
//! .width(50)
//! .height(15);
//! ```
//!
//! ## Sparkline
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! let data = vec![10, 25, 15, 30, 20, 35, 25];
//!
//! sparkline()
//! .data(data)
//! .width(20)
//! .height(3);
//! ```
//!
//! ## Heat Map
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! let data = vec![
//! (0, 0, 10),
//! (0, 1, 20),
//! (1, 0, 30),
//! (1, 1, 40),
//! ];
//!
//! heatmap()
//! .data(data)
//! .cell_width(4)
//! .cell_height(2);
//! ```
//!
//! # Common Features
//!
//! All charts support:
//!
//! - **Custom colors** - Set color schemes and palettes
//! - **Axes** - Configure X and Y axes with labels
//! - **Grid lines** - Show/hide grid lines
//! - **Legends** - Add legends with customizable position
//! - **Labels** - Add labels to data points
//! - **Orientation** - Horizontal or vertical layouts
// Re-exports for convenience
// Some chart_common types are re-exported for public API but not used internally
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;