Report Content
8 nodes
On this page 8
Add Chart
FunctionA chart, with a caption under it saying what to read in it. The chart is laid out again at the width the page gives it, so its text keeps its size and its proportions are kept.
AddChart(report: Report, chart: Figure, caption: Text) -> Report
Report AddChart(
Report report,
Figure chart,
string caption = "")Parameters
| name | type | default | description |
|---|---|---|---|
| report | Report | — | The report. |
| chart | Figure | — | The chart - any chart node's output. |
| caption | Text | — | What to read in it; may be empty. |
Returns
| Report | Report |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
Add Heading
FunctionA heading, starting a section: in a document it stands above what follows; in a deck it titles the slides that follow.
AddHeading(report: Report, text: Text) -> Report
Report AddHeading(Report report, string text)
Parameters
| name | type | default | description |
|---|---|---|---|
| report | Report | — | The report. |
| text | Text | — | The heading. |
Returns
| Report | Report |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
Add Key Figure
FunctionOne number that matters, set large with what it is above it. Key figures added one after another stand side by side, four to a row.
AddKeyFigure -> Report
report: Report
label: Text
value: Any
format: Text
note: TextReport AddKeyFigure(
Report report,
string label,
object value,
string format = "",
string note = "")Parameters
| name | type | default | description |
|---|---|---|---|
| report | Report | — | The report. |
| label | Text | — | What the number is: "Failure rate", "Busiest hour". |
| value | Any | — | The number, or a piece of text. |
| format | Text | — | How a number is written, as a spreadsheet writes it: "0.0%" for a share as a percentage, "#,##0" for a whole number with thousands separators, "0.00" for two decimals. Empty writes it as it is, with thousands separators from ten thousand up. |
| note | Text | — | A short line under the number, such as what it is compared with; may be empty. |
Returns
| Report | Report |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
Add Table
FunctionA table under a title. Numbers stand to the right and missing values are left blank; a table longer than Max Rows shows its first rows and says how many more there are.
AddTable -> Report
report: Report
table: Table
title: Text
maxRows: Integer
decimals: IntegerReport AddTable(
Report report,
Table table,
string title = "",
int maxRows = 20,
int decimals = -1)Parameters
| name | type | default | description |
|---|---|---|---|
| report | Report | — | The report. |
| table | Table | — | The table. |
| title | Text | — | What it shows; may be empty. |
| maxRows | Integer | 20 | How many rows to show at most. |
| decimals | Integer | -1 | How many decimals every number is written with, so a column of them lines up - 2 for 0.72 and 1.00; -1 writes each number as a printed table does. |
Returns
| Report | Report |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
Add Text
FunctionA paragraph of text. A blank line in it starts a new paragraph; a single line break is only where a Text node broke a long line, and reads as a space.
AddText(report: Report, text: Text) -> Report
Report AddText(Report report, string text)
Parameters
| name | type | default | description |
|---|---|---|---|
| report | Report | — | The report. |
| text | Text | — | The paragraph - often a Format node's sentence, with the numbers the analysis found in it. |
Returns
| Report | Report |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
Format Number
FunctionA number as a report writes it: with Decimals decimals when that is 0 or more, otherwise as a printed table shows it; either way with thousands separators from ten thousand up, so a year stays 2025 and a revenue reads 180,091.04.
FormatNumber(value: Number, decimals: Integer) -> Text
string FormatNumber(double value, int decimals = -1)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | |
| decimals | Integer | -1 |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
Format Value
FunctionA value as a key figure shows it: a number in the format asked for, or as it is with thousands separators from ten thousand up; anything else as its text.
FormatValue(value: Any, format: Text) -> Text
string FormatValue(object value, string format)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Any | — | |
| format | Text | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics
New Report
FunctionA new, empty report: its title, a line saying what it is about, and who prepared it. The day it is prepared is the day it is run.
NewReport(title: Text, subtitle: Text, author: Text) -> Report
Report NewReport(
string title = "Report",
string subtitle = "",
string author = "")Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | Report | What the report is called; it heads the first page. |
| subtitle | Text | — | A line under the title saying what the report is about. |
| author | Text | — | Who prepared it, named under the subtitle beside the date. |
Returns
| Report | Report |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Report Content
- Package
- Data Analytics