#![warn(missing_docs)]
#[macro_use]
mod macros;
mod accessibility;
mod annotation;
mod axis;
mod bar;
mod boxplot;
mod bubble;
mod bullet;
mod calendar;
mod candle;
mod canvas;
mod comparison;
mod crosshair;
mod depth;
mod funnel;
mod gantt;
mod gauge;
mod heatmap;
mod histogram;
mod indicator;
mod layout;
mod line;
mod lollipop;
mod radar;
mod renko;
mod rose;
mod sankey;
mod scale;
mod slope;
mod sparkline;
mod stack;
mod stacked_area;
mod stream;
mod text;
mod theme;
mod timeaxis;
mod treemap;
mod violin;
mod waterfall;
pub mod util;
pub use accessibility::{no_color_requested, strip_color, Monochrome};
pub use annotation::{draw_annotations, Annotation, AnnotationKind};
pub use axis::{Axis, GridStyle};
pub use bar::{BarChart, BarGroup, BarMode, BarOrientation, LabelPosition};
pub use boxplot::{BoxOrientation, BoxPlot, BoxStats};
pub use bubble::{BubbleChart, BubbleSeries};
pub use bullet::{Bullet, BulletItem};
pub use calendar::CalendarHeatmap;
pub use candle::{
ema, heikin_ashi, sma, BandOverlay, Candle, CandleStyle, CandlestickChart, HLine,
IndicatorPane, Overlay, TradeMarker, TradeSide,
};
pub use canvas::{Canvas, Marker, OverlapPolicy};
pub use comparison::{Comparison, ComparisonItem, ComparisonLayout};
pub use crosshair::{nearest_point, Crosshair, NearestPoint};
pub use depth::DepthChart;
pub use funnel::{Funnel, FunnelStage};
pub use gantt::{Gantt, Task};
pub use gauge::{Gauge, GaugeOrientation, GaugeStyle};
pub use heatmap::{Gradient, Heatmap};
pub use histogram::{Bin, Histogram};
pub use indicator::{atr, bollinger, macd, rsi, stochastic, vwap};
pub use line::{LegendPosition, LineChart, LineMode, Series};
pub use lollipop::{LollipopChart, LollipopItem};
pub use radar::{RadarChart, RadarSeries};
pub use renko::{renko_bricks, RenkoBrick, RenkoChart, RenkoStyle};
pub use rose::{RoseChart, RoseItem};
pub use sankey::{Sankey, SankeyLink};
pub use slope::{SlopeChart, SlopeItem};
pub use sparkline::{Sparkline, SparklineStyle};
pub use stack::{shared_gutter, ChartStack, StackDirection};
pub use stacked_area::{AreaLayer, StackedAreaChart};
pub use stream::{RingBuffer, Stream};
#[cfg(feature = "theme")]
pub use theme::{ChartThemeExt, Theme};
pub use timeaxis::{
civil_from_days, date_md, date_ymd, datetime, days_from_civil, time_hm, time_hms,
time_nice_step, time_ticks,
};
pub use treemap::{Treemap, TreemapItem};
#[cfg(feature = "theme")]
pub use tui_nuances::{Status, ThemeProvider, ThemeSwitcher, Themed};
pub use violin::{ViolinChart, ViolinGroup};
pub use waterfall::Waterfall;
use ratatui::style::Color;
pub const PALETTE: [Color; 8] = [
Color::Cyan,
Color::Yellow,
Color::Magenta,
Color::Green,
Color::LightRed,
Color::LightBlue,
Color::LightGreen,
Color::White,
];
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn palette_not_empty() {
assert_eq!(PALETTE.len(), 8);
}
}