Last updated: 2026-02-12
Charts
Visualize your query results instantly. Switch from grid view to chart view and turn data into bar charts, line charts, pie charts, and more without leaving Jam SQL Studio.
Creating Charts from Results
Any query result can be visualized as a chart.
Quick Start
- Execute a query that returns data
- Click the Chart tab in the results pane
- Select a chart type from the toolbar
- Choose columns for X and Y axes
- The chart generates automatically

Chart Types
Choose from several chart types to best represent your data.

| Chart Type | Best For | Description |
|---|---|---|
| Bar Chart | Comparing categories | Vertical bars showing values for each category. Great for comparing discrete items. |
| Horizontal Bar | Long category names | Bars displayed horizontally. Better when category labels are long. |
| Line Chart | Trends over time | Connected points showing changes. Ideal for time series data. |
| Area Chart | Cumulative trends | Line chart with filled area below. Shows volume and trend together. |
| Pie Chart | Parts of a whole | Circular chart showing proportions. Best with 2-7 categories. |
| Doughnut Chart | Parts of a whole | Pie chart with a hole in the center. Cleaner look, space for totals. |
| Scatter Plot | Correlations | Points plotted by X/Y coordinates. Shows relationships between variables. |
Configuring Charts
Customize your chart using the configuration panel.

Axis Configuration
- X-Axis Column - Select the column for categories or horizontal values
- Y-Axis Column(s) - Select one or more numeric columns for values
- X-Axis Label - Custom label for the horizontal axis
- Y-Axis Label - Custom label for the vertical axis
Data Series
When you select multiple Y-axis columns, each becomes a separate data series:
- Series Name - Label shown in the legend (defaults to column name)
- Series Color - Click to choose a custom color
- Series Visibility - Toggle series on/off
Chart Options
- Show Legend - Toggle legend visibility and position
- Show Data Labels - Display values on bars/points
- Stack Series - Stack bars/areas instead of grouping (bar/area charts)
- Show Grid - Toggle background grid lines
Working with Chart Data
Data Requirements
For best results, structure your query data appropriately:
- Bar/Line/Area Charts - One categorical column (X) and one or more numeric columns (Y)
- Pie/Doughnut Charts - One column for labels, one numeric column for values
- Scatter Plots - Two numeric columns (X and Y coordinates)
Example Queries
Sales by Category (Bar Chart):
SELECT Category, SUM(Amount) AS TotalSales
FROM Orders
GROUP BY Category
ORDER BY TotalSales DESCMonthly Revenue (Line Chart):
SELECT FORMAT(OrderDate, 'yyyy-MM') AS Month,
SUM(Amount) AS Revenue
FROM Orders
GROUP BY FORMAT(OrderDate, 'yyyy-MM')
ORDER BY MonthProduct Distribution (Pie Chart):
SELECT ProductType, COUNT(*) AS Count
FROM Products
GROUP BY ProductTypeExporting Charts
Share your visualizations by exporting or copying.
Export as Image
- Click the Export button in the chart toolbar
- Choose PNG format
- Select a destination folder
- The chart is saved at high resolution
Copy to Clipboard
- Click the Copy button in the chart toolbar
- The chart image is copied to your clipboard
- Paste into documents, emails, or presentations
Tips and Best Practices
Choosing the Right Chart
- Comparing values → Bar chart
- Showing trends → Line or area chart
- Showing proportions → Pie or doughnut chart
- Finding correlations → Scatter plot
Data Considerations
- Limit pie charts to 7 or fewer categories for readability
- Use ORDER BY to control the display order of categories
- Aggregate data (GROUP BY) before charting for cleaner results
- Consider using TOP N to limit large result sets
Visual Best Practices
- Add clear axis labels to explain what the chart shows
- Use the legend when displaying multiple series
- Consider stacking bars when showing parts of a total
- Enable data labels when precise values matter
Frequently asked questions
How do I create a chart from query results in Jam SQL Studio?
After executing a query, click the Chart tab in the results pane. Select your chart type, choose columns for X and Y axes, and the chart generates automatically. You can then customize labels, colors, and export the chart.
What chart types are available in Jam SQL Studio?
Jam SQL Studio supports bar charts (vertical and horizontal), line charts, area charts, pie charts, doughnut charts, and scatter plots. Each type can be configured with multiple data series.
Can I export charts as images?
Yes, click the Export button in the chart toolbar to save as PNG image. You can also copy the chart to clipboard for pasting into documents and presentations.
How do I show multiple columns in one chart?
In the chart configuration, you can select multiple columns for the Y-axis. Each column becomes a separate data series with its own color. This works for bar, line, and area charts.
What data types work best for charts?
Numeric columns work best for Y-axis values. For X-axis, use categorical data (strings, dates) for bar charts, or numeric data for scatter plots. Pie charts need one numeric column for values and one column for labels.
Ready to Visualize Your Data?
Download Jam SQL Studio and create charts from your query results.