Overview
Quail provides powerful charting capabilities that transform your data into clear, actionable visualizations. Whether you’re creating a simple bar chart or a complex multi-series visualization, Quail makes it easy to build, customize, and share charts.Creating Charts
You can create charts in Quail through multiple methods, depending on your workflow:- From Charts Page
- From Chat Interface
- From SQL Editor
Select Data Source
Choose your database connection and either:
- Select an existing table or view
- Write a custom SQL query
Configure Settings
Map your data columns to chart elements:
- X-axis and Y-axis
- Series grouping
- Filters and aggregations
Chart Types and When to Use Them
Choosing the right chart type is crucial for effectively communicating your data insights.Bar Charts
Best for:- Comparing values across categories
- Showing rankings
- Displaying discrete data
- Sales by product category
- Customer count by region
- Top 10 products by revenue
- Vertical bars: Standard comparison
- Horizontal bars: Better for long category names
- Stacked bars: Show composition within categories
- Grouped bars: Compare multiple series side-by-side
Bar charts work best with 2-15 categories. If you have more, consider filtering to top N or using a different chart type.
Line Charts
Best for:- Showing trends over time
- Continuous data
- Multiple series comparison
- Daily revenue trends
- Website traffic over time
- Year-over-year comparison
- Single line: One metric over time
- Multi-line: Compare multiple metrics
- Area chart: Emphasize magnitude of change
- Stacked area: Show composition over time
Line charts are most effective when your x-axis represents time or another continuous variable.
Pie and Donut Charts
Best for:- Showing proportions and percentages
- Part-to-whole relationships
- Composition of a total
- Market share distribution
- Revenue breakdown by category
- Customer segmentation
- Limit to 5-7 slices maximum
- Start largest slice at 12 o’clock
- Use a legend for small slices
- Consider a bar chart if values are similar
Scatter Plots
Best for:- Showing relationships between two variables
- Identifying correlations
- Detecting outliers
- Price vs. units sold
- Customer lifetime value vs. acquisition cost
- Age vs. purchase frequency
- Bubble size for third dimension
- Color for categories
- Trend lines
Radar Charts
Best for:- Comparing multiple variables across categories
- Showing strengths and weaknesses
- Multi-dimensional data
- Product feature comparison
- Performance metrics across teams
- Customer satisfaction scores
Polar Area Charts
Best for:- Cyclical data
- Comparing categories with circular layout
- Emphasizing magnitude differences
- Sales by hour of day
- Activity by day of week
- Seasonal patterns
Customizing Your Charts
Quail provides two ways to customize your charts:Using the AI Agent
The easiest way to customize charts is by asking the AI agent:Click Edit or Chat
If the chart was created in Chat, continue the conversation. Otherwise, click Edit with AI.
Request Changes
Tell the agent what you want to change:
- “Change the colors to blue and green”
- “Make the title bigger”
- “Add a subtitle explaining this data”
- “Show values on the bars”
- “Format the y-axis as currency”
Manual Editing (Advanced)
For precise control, you can manually edit the chart configuration:Open Chart File
Saved charts are stored as MDX files with React components. You can edit these files directly.
Manual editing requires familiarity with React and Quail’s charting components. Most users will find the AI agent sufficient for their customization needs.
Chart Customization Options
Whether using the AI agent or manual editing, you can customize:Style and Appearance
Colors
- Single color or color scheme
- Custom colors for each series
- Gradient fills
- Conditional colors based on values
Typography
- Title and subtitle
- Font sizes and families
- Axis labels
- Legend formatting
Layout
- Chart dimensions
- Padding and margins
- Legend position
- Grid lines and background
Data Labels
- Show/hide values on chart
- Number formatting
- Label position
- Units and prefixes
Data Configuration
Axes
- Scale type (linear, logarithmic)
- Min and max values
- Axis labels and units
- Tick intervals
Series
- Multiple data series
- Series names and colors
- Series types (line, bar, area)
- Show/hide series
Filters
- Date range filters
- Category filters
- Top N filters
- Custom SQL filters
Aggregations
- SUM, AVG, COUNT, MIN, MAX
- Group by dimensions
- Calculated fields
- Running totals
Saving and Organizing Charts
Saving Charts
Add Metadata
Provide:
- Name: Clear, descriptive name
- Description: What the chart shows and why it’s useful
- Tags: Keywords for organization (e.g., “sales”, “monthly”, “executive”)
Organizing Your Charts
Keep your charts organized as your library grows:- Use descriptive names: “Q1 2026 Revenue by Region” is better than “Chart 1”
- Add tags: Tag charts by topic, department, or time period
- Create folders: Group related charts together
- Star favorites: Mark frequently used charts
- Archive old charts: Remove outdated visualizations
Adding Charts to Dashboards
Charts become even more powerful when combined into dashboards:Charts added to dashboards remain linked to the original. Updates to the chart are reflected across all dashboards using it.
Sharing Charts
Share Individual Charts
Configure Access
Choose sharing options:
- Private: Only you can access
- Link: Anyone with the link can view
- Specific people: Invite by email
Set Permissions
Choose permission level:
- View: Can see the chart and refresh data
- Edit: Can modify chart settings
Export Options
PNG Image
Download chart as a high-resolution PNG for presentations and reports.
SVG Vector
Export as SVG for editing in design tools or printing.
CSV Data
Export the underlying data as CSV for use in spreadsheets.
Embed Code
Get embed code to display the chart on external websites.
Best Practices
Design Principles
- Simplicity: Remove unnecessary elements that don’t add to understanding
- Clarity: Use clear titles, labels, and legends
- Consistency: Use the same colors and styles across related charts
- Accessibility: Ensure colors are distinguishable and text is readable
Data Accuracy
- Verify queries: Always check that your query returns the correct data
- Update frequency: Note when data was last refreshed
- Handle nulls: Decide how to display missing or null values
- Check aggregations: Ensure SUM, AVG, etc. are calculated correctly
Performance
- Limit data points: Charts with thousands of points may render slowly
- Use aggregation: Aggregate data at the database level when possible
- Add filters: Allow users to filter data for faster rendering
- Cache results: Enable caching for frequently viewed charts
Naming and Documentation
- Descriptive titles: Clearly state what the chart shows
- Add context: Include time periods, filters, or other relevant details
- Document calculations: Explain any custom calculations or metrics
- Include sources: Note which tables and databases are used
Troubleshooting
Chart Not Displaying Data
- Verify your query returns results in the SQL Editor
- Check that columns are mapped correctly to chart axes
- Ensure date formats are recognized properly
- Look for null values that might be filtered out
Chart Looks Wrong
- Try a different chart type that better fits your data
- Check axis scales (linear vs. logarithmic)
- Verify data aggregation is correct
- Review filter settings
Performance Issues
- Reduce the number of data points
- Add filters to limit results
- Use server-side aggregation
- Consider caching for frequently accessed charts
