Skip to main content

Crate lodviz_components

Crate lodviz_components 

Source
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

§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
ChordData
Complete data for a Chord diagram
ColumnDef
Definition for a single column in a TableData.
GridData
A 2-D grid of values (rows × columns), used by HeatmapChart and ContourChart
SankeyData
Complete data for a Sankey flow diagram
SankeyLink
A directional flow link between two Sankey nodes
SankeyNode
A node in a Sankey diagram
SortKey
A single sort criterion: column index and direction.
StripGroup
A named group of values for a StripChart
TableData
A fully-defined table: column schema + row data.

Enums§

Alignment
Horizontal text alignment for a column.
ColorMap
A color map for encoding continuous data as color
ColumnType
Semantic type of a column, used to choose the appropriate filter UI.
ConditionalRule
Visual encoding rule applied to cells in a column based on their numeric value.
DivergingColorMap
Diverging color maps (two hues diverging from a neutral center)
FilterOp
A filter predicate that can be applied to a single cell value.
SequentialColorMap
Sequential (single-hue or perceptually uniform) color maps
SortDir
Sort direction.
StripLayout
Strip chart (dot plot) component How to distribute points within a band