Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

ParameterUsed by variants
boxen_depthletter_value
category_labelsbasic, grouped, horizontal, letter_value, rainbow, strip, violin
fill_opacitybasic, grouped, horizontal, rainbow, violin
gridlinesbasic, grouped, horizontal, letter_value, rainbow, strip, violin
heighthorizontal
hoverbasic, grouped, horizontal, letter_value, rainbow, strip, violin
jitterbasic, strip
notchbasic, grouped, outliers, points, rainbow, violin
palettebasic, grouped, horizontal, letter_value, rainbow, strip, violin
seriesgrouped
series_namesgrouped
show_pointsbasic, notched
sort_orderbasic, horizontal, letter_value, rainbow, strip, violin
stroke_widthbasic, grouped, horizontal, rainbow, violin
titlebasic, grouped, horizontal, letter_value, rainbow, strip, violin
valuesbasic, horizontal, letter_value, rainbow, strip, violin
widthhorizontal
x_labelbasic, grouped, horizontal, letter_value, rainbow, strip, violin
y_labelbasic, grouped, horizontal, letter_value, rainbow, strip, violin

Returns

Chart — object with .html property and .show() method.