Expand description
§lodviz_components
High-level components for data visualization, built on top of lodviz_core.
This crate provides a suite of interactive, responsive chart components ready to be used in Leptos applications. It includes support for light/dark theming, tooltips, and composed dashboards.
§Modules
components::charts: Core chart components (Bar, Line, Scatter, Area, Box, etc.).components::interaction: Interactive elements like Zoom/Pan and Brushing.components::layout: Dashboard layout primitives strings.components::theme_provider: Global theme management.
§Example
ⓘ
use lodviz_components::components::charts::BarChart;
use lodviz_core::core::theme::ChartConfig;
use leptos::prelude::*;
#[component]
fn MyChart() -> impl IntoView {
view! {
<BarChart
data=Signal::derive(|| vec![/* ... */])
config=Signal::derive(|| ChartConfig::default())
/>
}
}Re-exports§
pub use components::charts::area_chart::AreaChart;pub use components::charts::bar_chart::BarChart;pub use components::charts::box_plot::BoxGroup;pub use components::charts::box_plot::BoxPlot;pub use components::charts::box_plot::ViolinChart;pub use components::charts::candlestick::CandlestickChart;pub use components::charts::histogram::Histogram;pub use components::charts::kpi_card::KpiCard;pub use components::charts::kpi_card::KpiComparison;pub use components::charts::kpi_card::KpiData;pub use components::charts::kpi_card::KpiFormat;pub use components::charts::line_chart::LineChart;pub use components::charts::pie_chart::PieChart;pub use components::charts::radar::RadarChart;pub use components::charts::radar::RadarSeries;pub use components::charts::scatter_chart::ScatterChart;pub use components::charts::smart_chart::SmartChart;pub use components::charts::waterfall::WaterfallChart;pub use components::interaction::brush::Brush;pub use components::interaction::linked_context::DashboardContext;pub use components::interaction::linked_context::LinkedDashboard;pub use components::interaction::zoom_pan::ZoomPan;pub use components::interaction::zoom_pan::ZoomTransform;pub use components::layout::draggable_card::CardTransform;pub use components::layout::draggable_card::DraggableCard;pub use components::layout::global_mouse::provide_global_mouse;pub use components::svg::overlay::SmaOverlay;pub use components::svg::overlay::TrendLine;pub use components::theme_provider::ThemeProvider;pub use components::charts::chord_chart::ChordChart;pub use components::charts::contour_chart::ContourChart;pub use components::charts::heatmap::HeatmapChart;pub use components::charts::sankey_chart::SankeyChart;pub use components::charts::strip_chart::StripChart;pub use components::table::data_table::DataTable;pub use rendering::CanvasLineRenderer;pub use rendering::CanvasScatterRenderer;pub use rendering::RenderMode;pub use rendering::ResolvedRenderMode;
Modules§
- components
- Internal component subdivisions
- hooks
- Leptos hooks for reactive utilities
- rendering
- Rendering backends (SVG, Canvas) for performance optimization
Structs§
- BarDataset
- A category-based dataset for bar charts
- BarSeries
- A single named series for a bar chart
- Chord
Data - Complete data for a Chord diagram
- Column
Def - Definition for a single column in a
TableData. - Grid
Data - A 2-D grid of values (rows × columns), used by HeatmapChart and ContourChart
- Sankey
Data - Complete data for a Sankey flow diagram
- Sankey
Link - A directional flow link between two Sankey nodes
- Sankey
Node - A node in a Sankey diagram
- SortKey
- A single sort criterion: column index and direction.
- Strip
Group - A named group of values for a StripChart
- Table
Data - A fully-defined table: column schema + row data.
Enums§
- Alignment
- Horizontal text alignment for a column.
- Color
Map - A color map for encoding continuous data as color
- Column
Type - Semantic type of a column, used to choose the appropriate filter UI.
- Conditional
Rule - Visual encoding rule applied to cells in a column based on their numeric value.
- Diverging
Color Map - Diverging color maps (two hues diverging from a neutral center)
- Filter
Op - A filter predicate that can be applied to a single cell value.
- Sequential
Color Map - Sequential (single-hue or perceptually uniform) color maps
- SortDir
- Sort direction.
- Strip
Layout - Strip chart (dot plot) component How to distribute points within a band