Office Images
3 nodes
On this page 3
Chart
FunctionA 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: NumberOfficeImage Chart(
object[,] table,
string kind = "column",
string title = "",
double width = 640,
double height = 360)Parameters
| name | type | default | description |
|---|---|---|---|
| table | Object[,] | — | The table: a header row, then one row per category. |
| kind | Text | column | column, bar, line, area, pie or doughnut. |
| title | Text | — | The chart's title, or nothing. |
| width | Number | 640 | Its width in pixels. |
| height | Number | 360 | Its height in pixels. |
Returns
| result | OfficeImage |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Office Images
- Package
- Methodox Office
Combo Chart
FunctionA 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: TruthOfficeImage 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
| name | type | default | description |
|---|---|---|---|
| table | Object[,] | — | The table: a header row naming the series, then one row per category with its label first. |
| kinds | Text | line,column | Each series' kind in order, separated by commas: line, column or area; the last one named carries on. |
| colors | Text | — | Each series' colour in order, as #RRGGBB separated by commas; the suite's palette for any not named. |
| title | Text | — | The chart's title, or nothing. |
| width | Number | 640 | Its width in points as the page shows it. |
| height | Number | 300 | Its height in points. |
| axisFormats | Text | — | Number formats for the left axis and the right one, separated by a bar: 0"°"|0"%"; the numbers as they are when empty. |
| rightMaximum | Number | 0 | The top of the right axis, 100 for a percentage; automatic when 0. |
| legend | Truth | True | Whether 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
| result | OfficeImage |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Office Images
- Package
- Methodox Office
From Bytes
FunctionA 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
| name | type | default | description |
|---|---|---|---|
| bytes | Byte Array | — | The picture file's bytes. |
Returns
| result | OfficeImage |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Office Images
- Package
- Methodox Office