Dory Docs
Core Features

Charts & Results

Dory helps you inspect SQL results and convert useful result sets into charts. Chart quality depends on the shape of the SQL output.

Result Tables

After running SQL, first review the result table:

CheckWhy It Matters
Column namesClear names make chart configuration easier.
Row countVery large result sets are harder to chart directly.
Data typesDates, numbers, and categories should be shaped correctly.
Null valuesMissing values can distort charts.
Aggregation levelChart data usually works best after SQL aggregation.
  1. Write or generate SQL.
  2. Run the query.
  3. Review result columns and sample rows.
  4. Aggregate or reshape the result if needed.
  5. Open charting from the result area.
  6. Choose a chart type that matches the data.

Good Candidates for Charts

  • Time series with date and metric columns.
  • Category comparison with category and value columns.
  • Status distribution with status and count columns.
  • Top-N lists with name and metric columns.

Common Chart Data Shapes

Chart GoalRecommended Columns
Line chartdate, metric
Bar chartcategory, metric
Pie chartcategory, value
Table summarydimension columns plus metric columns

Let AI Help Shape Results

If the current result is hard to chart, ask AI to rewrite the SQL into chart-friendly output. Be specific about the chart type and required columns.

Example: ask AI to return daily order count and total revenue for the last 30 days, with one row per day.

On this page