Overview
Meridian’s chart canvas provides a flexible, drag-and-drop interface for creating and arranging data visualizations. Built with Mantine Charts, it supports multiple chart types with full customization.Supported Chart Types
Bar Chart
Compare categories and show distributions
Line Chart
Display trends over time or sequences
Area Chart
Show cumulative totals and ranges
Pie Chart
Visualize proportions and percentages
Donut Chart
Similar to pie with center emphasis
Scatter Plot
Show correlations and distributions
Chart Canvas
The chart canvas is a draggable workspace where charts can be positioned freely:Chart Item Structure
Creating Charts
From Query Results
Using AI Agent
The AI agent can create charts automatically:Drag and Drop
Charts are draggable using pointer events for smooth interaction:Drag Implementation
From/home/daytona/workspace/source/src/components/ChartCanvas.tsx:104:
Position Constraints
Chart Types
Bar Chart
- Category comparisons
- Time series (discrete periods)
- Multiple series comparison
Line Chart
- Time series trends
- Continuous data
- Multiple metric tracking
Area Chart
- Cumulative totals
- Stacked metrics
- Volume over time
Pie & Donut Charts
- Proportions and percentages
- Market share
- Budget allocation
Scatter Plot
- Correlations
- Distribution analysis
- Outlier detection
Chart Customization
Colors
Customize series colors:blue,red,green,yellow,purpleorange,cyan,pink,indigo,teal
Size
Chart dimensions are configurable:Multi-Series
Display multiple metrics:Canvas Management
Empty State
Dynamic Height
Resize Observer
Chart Actions
Remove Chart
Move Chart
Export Chart
Charts can be exported as images or JSON:Advanced Patterns
Linked Charts
Create multiple views of the same data:Dashboard Layout
Arrange charts in a grid:Responsive Charts
Charts adapt to canvas size changes:Performance Tips
Limit Data Points
Limit Data Points
For large datasets, aggregate before charting:
Debounce Drag Updates
Debounce Drag Updates
Use throttling for smooth dragging:
Virtual Scrolling
Virtual Scrolling
For many charts, consider virtualization:
Next Steps
Insights Discovery
Generate automatic insights from your charts
AI Agents
Use AI to create charts automatically