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
| Parameter | Used by variants |
|---|---|
bandwidth | aurora, basic, crystal, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box |
categories | all |
fill_opacity | aurora, basic, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box |
gridlines | all |
hover | all |
jitter | points, strip |
kde_steps | aurora, basic, crystal, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box |
palette | basic, half, horizontal, mean, points, quartile, split, strip, with_box |
sort_order | all |
stroke_width | aurora, basic, deluxe, half, horizontal, mean, points, quartile, rainbow, split, with_box |
title | all |
values | all |
x_label | all |
y_label | all |
Returns
Chart — object with .html property and .show() method.