Divooka Reference

Figures

5 nodes

On this page 5

Add Layers

Function

More layers drawn over every chart of a figure.

Signature
AddLayers(figure: Figure, layers: Chart Layer Array) -> Figure
Figure AddLayers(Figure figure, Layer[] layers)

Parameters

nametypedefaultdescription
figureFigure—The chart to add to.
layersChart Layer Array—The layers to draw over it.

Returns

ChartFigure
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Figures
Package
Data Analytics

Arrange Charts

Function

Charts 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: Text
Figure ArrangeCharts(
    Figure[] charts,
    int columns = 0,
    bool shareX = false,
    bool shareY = false,
    string title = "")

Parameters

nametypedefaultdescription
chartsFigure Array—The charts, in reading order.
columnsInteger0How many charts sit side by side; 0 picks a near-square grid.
shareXTruthFalseWhether every chart uses one horizontal range, labelled once below the grid.
shareYTruthFalseWhether every chart uses one vertical range, labelled once at the grid's left.
titleText—The whole figure's title.

Returns

ChartFigure
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Figures
Package
Data Analytics

Make Chart

Function

A 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 Language
Figure MakeChart(
    Layer[] layers,
    string title = "",
    string xTitle = "",
    string yTitle = "",
    ChartLanguage language = ChartLanguage.English)

Parameters

nametypedefaultdescription
layersChart Layer Array—The layers.
titleText—The chart's title.
xTitleText—The horizontal axis' title.
yTitleText—The vertical axis' title.
languageChart LanguageEnglishThe 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

ChartFigure
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Figures
Package
Data Analytics

Overlay Charts

Function

One 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

nametypedefaultdescription
backFigure—The chart underneath, whose titles and axes are kept.
frontFigure—The chart whose layers are drawn on top.

Returns

ChartFigure
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Figures
Package
Data Analytics

Small Multiples

Function

The 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 Language
Figure SmallMultiples(
    DivookaTensor1D x,
    DivookaTensor1D y,
    string[] groups,
    PanelKind kind = PanelKind.Line,
    int columns = 0,
    string title = "",
    ChartLanguage language = ChartLanguage.English)

Parameters

nametypedefaultdescription
xVector—Each value's horizontal position.
yVector—Each value.
groupsText Array—Each value's group; one panel per group.
kindPanel KindLineWhat kind of chart each panel is.
columnsInteger0How many panels sit side by side; 0 picks a near-square grid.
titleText—The whole figure's title.
languageChart LanguageEnglishThe 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

ChartFigure
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Figures
Package
Data Analytics