Expand description
Prepare chart data from LazyFrame: select x/y columns, collect, and convert to (f64, f64) points.
All prepare_* and collect_* functions take a row_limit to cap materialized rows (default from config).
Structs§
- BoxPlot
Data - BoxPlot
Stats - Box plot stats for a column.
- Chart
Data Result - Result of preparing chart data: series points and x-axis kind for label formatting.
- ChartX
Range Result - Result of loading only the x column: min/max for axis bounds and temporal kind.
- Heatmap
Data - Heatmap data for two numeric columns.
- Histogram
Bin - Histogram bin (center and count).
- Histogram
Data - Histogram data for a single column.
- KdeData
- KdeSeries
- KDE series and bounds.
Enums§
- XAxis
Temporal Kind - Describes how x-axis numeric values map to temporal types for label formatting.
Functions§
- format_
axis_ label - Format a numeric axis tick (for y-axis or generic numeric).
- format_
x_ axis_ label - Format x-axis tick: dates/datetimes/times when kind is temporal, else numeric. Used by chart widget and export.
- prepare_
box_ plot_ data - Prepare box plot stats for one or more numeric columns. Uses a single collect for all columns.
- prepare_
chart_ data - Prepares chart data from the current LazyFrame.
Returns series data and x-axis kind. X is cast to f64 (temporal types as ordinal).
Drops nulls and limits to
row_limitrows. - prepare_
chart_ x_ range - Loads only the x column and returns its min/max (for axis display when no y is selected).
Limits to
row_limitrows then scans for min/max (single column materialized). - prepare_
heatmap_ data - Prepare heatmap data for two numeric columns.
- prepare_
histogram_ data - Prepare histogram data for a numeric column.
- prepare_
kde_ data - Prepare KDE data for one or more numeric columns. Uses a single collect for all columns.
- x_
axis_ temporal_ kind_ for_ column - Returns the x-axis temporal kind for a column from the schema (for axis label formatting when no data is loaded yet).