Figures
5 nodes
On this page 5
Add Layers
FunctionMore layers drawn over every chart of a figure.
Signature
AddLayers(figure: Figure, layers: Chart Layer Array) -> Figure
Figure AddLayers(Figure figure, Layer[] layers)
Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart to add to. |
| layers | Chart Layer Array | — | The layers to draw over it. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Figures
- Package
- Data Analytics
Arrange Charts
FunctionCharts arranged in a grid, row by row: a dashboard, a before-and-after, a set of views of one thing.
Signature
ArrangeCharts -> Figure
charts: Figure Array
columns: Integer
shareX: Truth
shareY: Truth
title: TextFigure ArrangeCharts(
Figure[] charts,
int columns = 0,
bool shareX = false,
bool shareY = false,
string title = "")Parameters
| name | type | default | description |
|---|---|---|---|
| charts | Figure Array | — | The charts, in reading order. |
| columns | Integer | 0 | How many charts sit side by side; 0 picks a near-square grid. |
| shareX | Truth | False | Whether every chart uses one horizontal range, labelled once below the grid. |
| shareY | Truth | False | Whether every chart uses one vertical range, labelled once at the grid's left. |
| title | Text | — | The whole figure's title. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Figures
- Package
- Data Analytics
Make Chart
FunctionA chart of layers drawn over the same axes, first layer at the back.
Signature
MakeChart -> Figure
layers: Chart Layer Array
title: Text
xTitle: Text
yTitle: Text
language: Chart LanguageFigure MakeChart(
Layer[] layers,
string title = "",
string xTitle = "",
string yTitle = "",
ChartLanguage language = ChartLanguage.English)Parameters
| name | type | default | description |
|---|---|---|---|
| layers | Chart Layer Array | — | The layers. |
| title | Text | — | The chart's title. |
| xTitle | Text | — | The horizontal axis' title. |
| yTitle | Text | — | The vertical axis' title. |
| language | Chart Language | English | The language of the words the chart writes itself - an axis it titles, a series nobody named, month and day names on a time axis - and of the headings it writes into a workbook, a slide deck or a document. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Figures
- Package
- Data Analytics
Overlay Charts
FunctionOne chart drawn over another: the second's layers on the first's axes.
Signature
OverlayCharts(back: Figure, front: Figure) -> Figure
Figure OverlayCharts(Figure back, Figure front)
Parameters
| name | type | default | description |
|---|---|---|---|
| back | Figure | — | The chart underneath, whose titles and axes are kept. |
| front | Figure | — | The chart whose layers are drawn on top. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Figures
- Package
- Data Analytics
Small Multiples
FunctionThe same chart drawn once per group, side by side on shared axes, so the groups are compared by eye.
Signature
SmallMultiples -> Figure
x: Vector
y: Vector
groups: Text Array
kind: Panel Kind
columns: Integer
title: Text
language: Chart LanguageFigure SmallMultiples(
DivookaTensor1D x,
DivookaTensor1D y,
string[] groups,
PanelKind kind = PanelKind.Line,
int columns = 0,
string title = "",
ChartLanguage language = ChartLanguage.English)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Each value's horizontal position. |
| y | Vector | — | Each value. |
| groups | Text Array | — | Each value's group; one panel per group. |
| kind | Panel Kind | Line | What kind of chart each panel is. |
| columns | Integer | 0 | How many panels sit side by side; 0 picks a near-square grid. |
| title | Text | — | The whole figure's title. |
| language | Chart Language | English | The language of the words the chart writes itself - an axis it titles, a series nobody named, month and day names on a time axis - and of the headings it writes into a workbook, a slide deck or a document. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Figures
- Package
- Data Analytics