Divooka Reference

Office Images

3 nodes

On this page 3

Chart

Function

A chart of a table, drawn by Formula's chart engine onto our canvas: the first column labels the categories and every further column is a series, named by the header row.

Signature
Chart -> OfficeImage
    table: Object[,]
    kind: Text
    title: Text
    width: Number
    height: Number
OfficeImage Chart(
    object[,] table,
    string kind = "column",
    string title = "",
    double width = 640,
    double height = 360)

Parameters

nametypedefaultdescription
tableObject[,]—The table: a header row, then one row per category.
kindTextcolumncolumn, bar, line, area, pie or doughnut.
titleText—The chart's title, or nothing.
widthNumber640Its width in pixels.
heightNumber360Its height in pixels.

Returns

resultOfficeImage
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Images
Package
Methodox Office

Combo Chart

Function

A chart of a table in which each series has its own kind and colour, a line over columns for instance, drawn sharp enough to print: the first series' kind reads against the left axis, and series of another kind against an axis of their own on the right.

Signature
ComboChart -> OfficeImage
    table: Object[,]
    kinds: Text
    colors: Text
    title: Text
    width: Number
    height: Number
    axisFormats: Text
    rightMaximum: Number
    legend: Truth
OfficeImage ComboChart(
    object[,] table,
    string kinds = "line,column",
    string colors = "",
    string title = "",
    double width = 640,
    double height = 300,
    string axisFormats = "",
    double rightMaximum = 0,
    bool legend = true)

Parameters

nametypedefaultdescription
tableObject[,]—The table: a header row naming the series, then one row per category with its label first.
kindsTextline,columnEach series' kind in order, separated by commas: line, column or area; the last one named carries on.
colorsText—Each series' colour in order, as #RRGGBB separated by commas; the suite's palette for any not named.
titleText—The chart's title, or nothing.
widthNumber640Its width in points as the page shows it.
heightNumber300Its height in points.
axisFormatsText—Number formats for the left axis and the right one, separated by a bar: 0"°"|0"%"; the numbers as they are when empty.
rightMaximumNumber0The top of the right axis, 100 for a percentage; automatic when 0.
legendTruthTrueWhether the chart names its series above the plot; a document that names them in its own words, in its own language, leaves it out.

Returns

resultOfficeImage
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Images
Package
Methodox Office

From Bytes

Function

A picture from its bytes: a PNG or a JPEG, such as an HTTP GET answers.

Signature
FromBytes(bytes: Byte Array) -> OfficeImage
OfficeImage FromBytes(byte[] bytes)

Parameters

nametypedefaultdescription
bytesByte Array—The picture file's bytes.

Returns

resultOfficeImage
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Office Images
Package
Methodox Office