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.
Variants
Parameters
Returns
Chart — object with .html property and .show() method.
Raincloud layout - a translucent half-violin KDE silhouette on the left of each category paired with individual jittered points strictly on the right, so the density shape and the raw sample are both visible without ever overlapping.