Overview
Gainable apps include Chart.js for data visualization. You can add charts to any page by describing what you want to see.Chart types
Line charts
Best for showing trends over time.Bar charts
Best for comparing categories.Pie charts
Best for showing proportions.Doughnut charts
Similar to pie charts with a hole in the center.Requesting charts
Be specific about the data
Specify the chart type
Name your metrics
Common patterns
Dashboard with KPIs and charts
Charts on detail pages
Comparative charts
Date-based charts
When charting data over time, specify the date field:Interactive features
Charts in Gainable are interactive:- Hover - See exact values
- Click - Filter or drill down (when configured)
- Resize - Responsive to container size
- Animate - Smooth transitions on data change
Real-time updates
Charts update automatically when data changes:- New records are added to the chart
- Updated values refresh the visualization
- Deleted records are removed
- All without page refresh
Chart placement
On dashboards
In cards
With data tables
Customization
Colors
Labels
Legends
Best practices
Match chart type to data
Match chart type to data
- Trends over time → Line chart
- Category comparison → Bar chart
- Part of whole → Pie or doughnut
Don't overcrowd
Don't overcrowd
Limit pie charts to 5-7 segments. Use bar charts for more categories.
Use meaningful titles
Use meaningful titles
“Deals by Status” is clearer than “Chart 1”
Consider the context
Consider the context
Place charts where they’re relevant - sales charts on sales pages, etc.
Examples
Sales dashboard
Project overview
Learn more
Data models
Understanding your data
Real-time
Live chart updates