Divooka Reference

Report Content

8 nodes

On this page 8

Add Chart

Function

A 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.

Signature
AddChart(report: Report, chart: Figure, caption: Text) -> Report
Report AddChart(
    Report report,
    Figure chart,
    string caption = "")

Parameters

nametypedefaultdescription
reportReport—The report.
chartFigure—The chart - any chart node's output.
captionText—What to read in it; may be empty.

Returns

ReportReport
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

Add Heading

Function

A heading, starting a section: in a document it stands above what follows; in a deck it titles the slides that follow.

Signature
AddHeading(report: Report, text: Text) -> Report
Report AddHeading(Report report, string text)

Parameters

nametypedefaultdescription
reportReport—The report.
textText—The heading.

Returns

ReportReport
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

Add Key Figure

Function

One 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.

Signature
AddKeyFigure -> Report
    report: Report
    label: Text
    value: Any
    format: Text
    note: Text
Report AddKeyFigure(
    Report report,
    string label,
    object value,
    string format = "",
    string note = "")

Parameters

nametypedefaultdescription
reportReport—The report.
labelText—What the number is: "Failure rate", "Busiest hour".
valueAny—The number, or a piece of text.
formatText—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.
noteText—A short line under the number, such as what it is compared with; may be empty.

Returns

ReportReport
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

Add Table

Function

A 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.

Signature
AddTable -> Report
    report: Report
    table: Table
    title: Text
    maxRows: Integer
    decimals: Integer
Report AddTable(
    Report report,
    Table table,
    string title = "",
    int maxRows = 20,
    int decimals = -1)

Parameters

nametypedefaultdescription
reportReport—The report.
tableTable—The table.
titleText—What it shows; may be empty.
maxRowsInteger20How many rows to show at most.
decimalsInteger-1How 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

ReportReport
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

Add Text

Function

A 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.

Signature
AddText(report: Report, text: Text) -> Report
Report AddText(Report report, string text)

Parameters

nametypedefaultdescription
reportReport—The report.
textText—The paragraph - often a Format node's sentence, with the numbers the analysis found in it.

Returns

ReportReport
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

Format Number

Function

A 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.

Signature
FormatNumber(value: Number, decimals: Integer) -> Text
string FormatNumber(double value, int decimals = -1)

Parameters

nametypedefaultdescription
valueNumber—
decimalsInteger-1

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

Format Value

Function

A 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.

Signature
FormatValue(value: Any, format: Text) -> Text
string FormatValue(object value, string format)

Parameters

nametypedefaultdescription
valueAny—
formatText—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics

New Report

Function

A 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.

Signature
NewReport(title: Text, subtitle: Text, author: Text) -> Report
Report NewReport(
    string title = "Report",
    string subtitle = "",
    string author = "")

Parameters

nametypedefaultdescription
titleTextReportWhat the report is called; it heads the first page.
subtitleText—A line under the title saying what the report is about.
authorText—Who prepared it, named under the subtitle beside the date.

Returns

ReportReport
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Report Content
Package
Data Analytics