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

Violin Plot

Signature

sp.violin(title, labels=None, values=None, *, variant="box", **kwargs) -> Chart

Description

sp.violin() is the unified entry point for the entire violin-plot family. The variant keyword selects the rendering strategy — every other argument stays consistent across variants. The kernel-density estimation, quartiles and statistics are computed in pure Rust, no NumPy or pandas required.

Parameters

ParameterUsed by variants
bandwidthaurora, basic, crystal, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box
categoriesall
fill_opacityaurora, basic, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box
gridlinesall
hoverall
jitterpoints, strip
kde_stepsaurora, basic, crystal, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box
palettebasic, half, horizontal, mean, points, quartile, split, strip, with_box
sort_orderall
stroke_widthaurora, basic, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box
titleall
valuesall
x_labelall
y_labelall

Returns

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