Dashboards and charts
Number cards and charts on a workspace or on a Dashboard page.
Number Cards and Dashboard Charts show numbers from a RecType's Records. Each viewer's number counts only the Records they can read. Only a System Manager creates them. Put them on a workspace or group them on a Dashboard.
Number Card
| Field | Example |
|---|---|
| Label | Overdue Invoices |
| RecType | Sales Invoice |
| Function | Count, Sum or Average |
| Based On | outstanding_amount, for Sum and Average |
| Filters | [["docstatus", "=", 1], ["status", "=", "Overdue"]] |
| Dynamic Filters | [["company", "=", "default:company"]], filled from each viewer's defaults |
| Warning At, Danger At | 100000, 500000 |
A card at or past a threshold shows a tinted border and the words "Needs attention" or "Needs action". A Danger At below Warning At means low numbers are bad. Clicking the card opens the list with the same filters.
Dashboard Chart
Open /desk/dashboard-chart/new. Set Chart Name Monthly Sales and Chart Source Sum.
Set RecType Sales Invoice, Time Series Based On posting_date and Value Based On grand_total.
Pick Timespan Last Year and Time Interval Monthly. Add Filters [["docstatus", "=", 1]].
Choose Type Bar and save. Tick Is Public to show it to every user who can read Sales Invoice.
| Chart Source | Draws |
|---|---|
| Count, Sum, Average | One value per period over a date field |
| Group By | One value per value of a field, such as invoices per customer. Number of Groups keeps the largest |
| Report | A saved Report's rows. Pick the X Field and Y Axis columns, or tick Use Report Chart |
| Custom | A chart an installed app computes |
| Field | Options |
|---|---|
| Type | Line, Bar, Percentage, Pie, Donut, Heatmap, Area, Funnel |
| Timespan | Last Year, Last Quarter, Last Month, Last Week, Select Date Range |
| Time Interval | Yearly, Quarterly, Monthly, Weekly, Daily |
| Roles | Only these roles see the chart. Empty leaves it to read on the RecType |
| Parent RecType | For a chart on a child table, the RecType that holds its rows |
A workspace with a period filter passes its dates to every chart and card on it.
Dashboard
A Dashboard puts number cards and charts on one page.
| Field | Use |
|---|---|
| Dashboard Name | Sales Overview |
| Number Cards | One row per card |
| Charts | One row per chart, with Width Half or Full |
Open it with Show Dashboard on the form, or at /desk/dashboard-view/Sales Overview. Viewers see only the cards and charts they may read.
Apps ship standard cards, charts and dashboards. These are read only, and a card or chart in use on a workspace cannot be deleted.