Box Plot
Signature
sp.boxplot(title, labels=None, values=None, *, variant="basic", series=None, **kwargs) -> Chart
Description
sp.boxplot() is the unified entry point for the entire box-plot family. The variant keyword selects the rendering strategy — every other argument stays consistent across variants. Quartiles, 1.5×IQR whiskers and outliers are computed in pure Rust without NumPy or pandas.
Parameters
| Parameter | Used by variants |
|---|---|
boxen_depth | letter_value |
category_labels | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
fill_opacity | basic, grouped, horizontal, rainbow, violin |
gridlines | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
height | horizontal |
hover | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
jitter | basic, strip |
notch | basic, grouped, outliers, points, rainbow, violin |
palette | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
series | grouped |
series_names | grouped |
show_points | basic, notched |
sort_order | basic, horizontal, letter_value, rainbow, strip, violin |
stroke_width | basic, grouped, horizontal, rainbow, violin |
title | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
values | basic, horizontal, letter_value, rainbow, strip, violin |
width | horizontal |
x_label | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
y_label | basic, grouped, horizontal, letter_value, rainbow, strip, violin |
Returns
Chart — object with .html property and .show() method.