Skip to content
//! Charts feature: server-side SVG generation from ClickHouse tables,
//! delivered through HTMX swaps.
//!
//! Module layout
//! - `types`    – shared enums (`ChartType`, `ColKind`).
//! - `infer`    – column classification and chart-type heuristics.
//! - `query`    – HTTP query structs, identifier escaping, SQL building,
//!   ClickHouse fetch.
//! - `render`   – SVG renderers + theme + responsive sizing.
//! - `ui`       – Maud HTML helpers (controls, panel, empty states).
//! - `handlers` – Actix HTTP handlers wired in `main.rs`.

#![allow(clippy::too_many_lines)]

mod handlers;
mod infer;
mod query;
mod render;
mod types;
mod ui;

pub use handlers::{charts_get_tables, charts_page, charts_render, charts_view};