Skip to main content

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:
If your data has a business date (like close date or order date), specify it. Otherwise, charts will use the creation date.

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

  • Trends over time → Line chart
  • Category comparison → Bar chart
  • Part of whole → Pie or doughnut
Limit pie charts to 5-7 segments. Use bar charts for more categories.
“Deals by Status” is clearer than “Chart 1”
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