Boxplot
Use a boxplot to compare the distribution of a raw measure across categories.
Every preview on this page is generated from the YAML shown below it using a fixed documentation dataset.
Delivery distribution
Set query.table and select a numeric measure so LeapView can derive the quartiles, median, whiskers, and outliers from raw delivery values.
Key fields
visuals:
delivery_distribution:
title: Delivery day distribution
description: Summarizes delivery-day distribution by speed bucket.
type: boxplot
query:
table: orders
dimensions:
delivery_bucket: orders.delivery_bucket
measures:
delivery_days: null
sort:
- field: delivery_bucket
direction: asc
Review distribution
Swap the numeric measure to compare review-score spread with the same distribution shape and raw-table query path.
Key fields
visuals:
review_distribution:
title: Review score distribution
type: boxplot
query:
table: orders
dimensions:
status: orders.status
measures:
review_score: null
sort:
- field: status
direction: asc
Zoomable distribution
Use revenue as the raw measure and enable presentation.data_zoom when the range contains values that benefit from closer inspection.
Key fields
visuals:
revenue_distribution:
title: Revenue distribution
type: boxplot
presentation:
data_zoom: true
query:
table: orders
dimensions:
category: orders.category
measures:
revenue: null
sort:
- field: category
direction: desc
limit: 12
API reference
Kind: chart. Renderer: echarts. Supported result shapes: distribution.
| Field | Type | Default | Allowed values | Description |
|---|---|---|---|---|
query.dimensions | field mapping | — | — | Groups query results and supplies category, hierarchy, matrix, graph, or geographic labels. |
query.limit | integer | no limit | positive integer | Caps the number of rows returned to the renderer. |
query.measures | measure mapping | — | — | Selects the governed semantic measures consumed by the visual shape. |
query.sort | sort list | — | — | Orders query results by a returned field or measure alias. |
query.table | string | — | — | Selects the fact table when the semantic model cannot infer one from the referenced fields. |
presentation.data_zoom | boolean | false | true false | Adds inside and slider zoom controls to supported Cartesian charts. |
Accessibility. Use a descriptive title and unit, and do not rely on color alone to distinguish series or values.