Violin

A violin (kernel-density) distribution — the same attributes as BoxPlot, but the shape shows the full density rather than just the quartiles. y is the value; x is an optional group.

<Violin data={daily_metrics} x="weekday" y="visits" title="Visit density by weekday" />

Omit x for a single combined density shape:

Note

Like BoxPlot, Violin reads raw rows for its density, so it takes data={query} only — a semantic metric (metric=) is pre-aggregated and can't feed a distribution.

Attributes #

Attribute Purpose
data Required. The query to plot (data={query}).
y Required. The value column the density is computed over.
x Optional grouping column — one violin per group (omit for a single shape).
title Chart title.
color Single color or comma-separated palette override.
height Pixel height (default 300).
col-span Columns to span inside a <Grid>.
format · currency · decimals · locale Value & tooltip number formatting.
empty_message Text shown when the query returns no rows.

Identical to BoxPlot; the rest are the shared chart attributes — see Charts.

Generated