Skip to main content
Using Sample Data: The examples on this page use fields from our sample dataset. Download it and create an evaluation with it to follow along with this tutorial.
Donut Chart Widget Example

When to Use

Use donut chart widgets to:
  • Show proportional distribution of categories
  • Visualize percentage breakdowns at a glance
  • Compare relative sizes of groups
  • Highlight dominant categories in your data

Configuration

Required Fields

string
required
Widget display name shown on the dashboard
string
required
Must be set to “donut”
object
required
SeriesQuery with GROUP BY for categorical breakdown

Slice Grouping Configuration

Set config.x_column_group, even when grouping by one column. The API also accepts config.x_column in its place, but the donut chart doesn’t draw it.
string[]
required
Column names that identify each slice. Use a one-element array for a single grouping column, or multiple columns for slices representing each unique combination. These columns must also appear in select and groupBy.Examples: ["task_type"] or ["agent_name", "task_type"]

Query Requirements

Donut chart widgets require a SeriesQuery with:
  • groupBy for categorical breakdown (required)
  • At least one aggregation for slice values (COUNT, SUM, AVG, etc.)
  • Can include filter to narrow the dataset
The donut chart automatically limits display to the top 10 slices. Any remaining categories are grouped into an “Other” slice.

Creating in the UI

1

Open Widget Creator

From your dashboard, click “Add Widget” and select “Donut Chart”
2

Enter Title

Give your chart a descriptive name (e.g., “Task Type Distribution”)
3

Configure Query

Donut Chart Query Builder
  • Column Name (under Data Source): Select the categorical dimension - each unique value becomes a slice
  • Slices are sized by row count. The UI adds the COUNT(*) aggregation for you.
  • Filter: Add conditions to narrow the data (optional)
4

Create Widget

Click “Add” to generate the donut chart
Created Donut Chart Widget

Output Format

Donut chart widgets use the same series format as other chart types:
Each data point becomes a slice, with the aggregation value determining its proportional size.

Example Use Cases

Use Case 1: Distribution by Task Type

Show how evaluation items are distributed across task types.

Use Case 2: Agent Workload Distribution

Visualize how many evaluation items each agent has processed.

Use Case 3: Prompt Category Breakdown with Filter

Show the distribution of prompt categories, filtered to only high-scoring items.