Chart Layers
19 nodes
On this page 19
Area Layer
FunctionA filled area under a line.
Area(x: Vector, y: Vector, label: Text) -> Chart Layer
Layer Area(
DivookaTensor1D x,
DivookaTensor1D y,
string label = "")Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Where each point is along the bottom. |
| y | Vector | — | How high each point is. |
| label | Text | — | The area's name in the legend. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Arrow
FunctionAn arrow from one point to another.
Arrow -> Chart Layer
fromX: Number
fromY: Number
toX: Number
toY: NumberLayer Arrow(double fromX, double fromY, double toX, double toY)
Parameters
| name | type | default | description |
|---|---|---|---|
| fromX | Number | — | Where the arrow starts, horizontally. |
| fromY | Number | — | Where the arrow starts, vertically. |
| toX | Number | — | Where the arrow points, horizontally. |
| toY | Number | — | Where the arrow points, vertically. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Bars Layer
FunctionA bar per category.
Bars -> Chart Layer
categories: Text Array
values: Vector
label: Text
horizontal: Truth
valueLabels: TruthLayer Bars(
string[] categories,
DivookaTensor1D values,
string label = "",
bool horizontal = false,
bool valueLabels = false)Parameters
| name | type | default | description |
|---|---|---|---|
| categories | Text Array | — | Each bar's name. |
| values | Vector | — | Each bar's length. |
| label | Text | — | The bars' name in the legend. |
| horizontal | Truth | False | Whether the bars run left to right. |
| valueLabels | Truth | False | Whether each bar's value is written at its end. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Box Plot Layer
FunctionA box plot of values, one box per category when categories are given.
BoxPlot(values: Vector, categories: Text Array) -> Chart Layer
Layer BoxPlot(DivookaTensor1D values, string[] categories)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Vector | — | The values. |
| categories | Text Array | — | Each value's category; unset, one box. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Density Layer
FunctionA smooth curve of how values are spread.
Density(values: Vector, label: Text) -> Chart Layer
Layer Density(DivookaTensor1D values, string label = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Vector | — | The values. |
| label | Text | — | The curve's name in the legend. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Error Bars Layer
FunctionWhiskers from a low to a high value at each point.
ErrorBars -> Chart Layer
x: Vector
low: Vector
high: Vector
label: TextLayer ErrorBars(
DivookaTensor1D x,
DivookaTensor1D low,
DivookaTensor1D high,
string label = "")Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Where each whisker stands. |
| low | Vector | — | Each whisker's bottom. |
| high | Vector | — | Each whisker's top. |
| label | Text | — | The whiskers' name in the legend. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Grouped Points Layer
FunctionPoints coloured by a group each belongs to, the groups named in the legend.
GroupedPoints -> Chart Layer
x: Vector
y: Vector
groups: Text ArrayLayer GroupedPoints(
DivookaTensor1D x,
DivookaTensor1D y,
string[] groups)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Each point's horizontal value. |
| y | Vector | — | Each point's vertical value. |
| groups | Text Array | — | Each point's group. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Histogram Layer
FunctionValues counted into bins.
Histogram -> Chart Layer
values: Vector
bins: Integer
label: Text
scale: Histogram ScaleLayer Histogram(
DivookaTensor1D values,
int bins = 0,
string label = "",
HistogramScale scale = HistogramScale.Count)Parameters
| name | type | default | description |
|---|---|---|---|
| values | Vector | — | The values. |
| bins | Integer | 0 | About how many bins; 0 picks a number from how many values there are. |
| label | Text | — | The histogram's name in the legend. |
| scale | Histogram Scale | Count | What the bars' heights count: values, shares, or density. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Labels Layer
FunctionWords at points.
Labels -> Chart Layer
x: Vector
y: Vector
texts: Text Array
anchor: Label AnchorLayer Labels(
DivookaTensor1D x,
DivookaTensor1D y,
string[] texts,
LabelAnchor anchor = LabelAnchor.Above)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Where each label goes, horizontally. |
| y | Vector | — | Where each label goes, vertically. |
| texts | Text Array | — | What each label says. |
| anchor | Label Anchor | Above | Which side of its point each label sits on. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Line Layer
FunctionA line through points.
Line -> Chart Layer
x: Vector
y: Vector
label: Text
shape: Line Shape
markers: TruthLayer Line(
DivookaTensor1D x,
DivookaTensor1D y,
string label = "",
LineShape shape = LineShape.Straight,
bool markers = false)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Where each point is along the bottom. |
| y | Vector | — | How high each point is. |
| label | Text | — | The line's name in the legend. |
| shape | Line Shape | Straight | How the line passes through its points. |
| markers | Truth | False | Whether each point is marked. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Note
FunctionA note on one point, set off from it with a thin leader line.
Note -> Chart Layer
x: Number
y: Number
text: Text
offsetX: Number
offsetY: Number
dot: TruthLayer Note(
double x,
double y,
string text,
double offsetX = 24,
double offsetY = -24,
bool dot = true)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | The point's horizontal value. |
| y | Number | — | The point's vertical value. |
| text | Text | — | The note. |
| offsetX | Number | 24 | How far right of the point the note sits, in pixels. |
| offsetY | Number | -24 | How far below the point the note sits, in pixels; negative is above. |
| dot | Truth | True | Whether the point is marked with a dot: on for a note about a data point, off for a caption at the tail of an arrow. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Points Layer
FunctionPoints placed by two numbers each.
Points -> Chart Layer
x: Vector
y: Vector
label: Text
shape: Point Shape
size: NumberLayer Points(
DivookaTensor1D x,
DivookaTensor1D y,
string label = "",
PointShape shape = PointShape.Circle,
double size = 8)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Each point's horizontal value. |
| y | Vector | — | Each point's vertical value. |
| label | Text | — | The points' name in the legend. |
| shape | Point Shape | Circle | The points' shape. |
| size | Number | 8 | The points' diameter in pixels. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Range Band Layer
FunctionA shaded band between a lower and an upper line: a range, an interval, a forecast's uncertainty.
RangeBand -> Chart Layer
x: Vector
lower: Vector
upper: Vector
label: TextLayer RangeBand(
DivookaTensor1D x,
DivookaTensor1D lower,
DivookaTensor1D upper,
string label = "")Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | Where each point is along the bottom. |
| lower | Vector | — | The band's bottom edge. |
| upper | Vector | — | The band's top edge. |
| label | Text | — | The band's name in the legend. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Reference Line
FunctionA dashed reference line across the chart: a target, an average, a limit.
ReferenceLine -> Chart Layer
value: Number
label: Text
vertical: TruthLayer ReferenceLine(
double value,
string label = "",
bool vertical = false)Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | Where the line is. |
| label | Text | — | What the line is called, written at its end. |
| vertical | Truth | False | Whether the line runs up and down, at a horizontal position. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Shaded Span
FunctionA shaded span across the chart between two values: a period, a tolerance.
ShadedSpan -> Chart Layer
from: Number
to: Number
label: Text
vertical: TruthLayer ShadedSpan(
double from,
double to,
string label = "",
bool vertical = true)Parameters
| name | type | default | description |
|---|---|---|---|
| from | Number | — | Where the span starts. |
| to | Number | — | Where the span ends. |
| label | Text | — | What the span is called, written in its corner. |
| vertical | Truth | True | Whether the span runs up and down, between horizontal positions. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Style Layer
FunctionA layer with its colour, opacity, legend name or axis changed.
StyleLayer -> Chart Layer
layer: Chart Layer
color: Optional Color
opacity: Number
label: Text
secondAxis: TruthLayer StyleLayer(
Layer layer,
ColorElement? color,
double opacity = 1,
string label = "",
bool secondAxis = false)Parameters
| name | type | default | description |
|---|---|---|---|
| layer | Chart Layer | — | The layer. |
| color | Optional Color | — | Its colour; unset keeps the palette's. |
| opacity | Number | 1 | How opaque it is, from 0 to 1. |
| label | Text | — | Its name in the legend; empty keeps the name it has. |
| secondAxis | Truth | False | Whether its values are read on a second axis on the right. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Time Line Layer
FunctionA line over dates.
TimeLine -> Chart Layer
times: Date & Time Array
values: Vector
label: TextLayer TimeLine(
DateTime[] times,
DivookaTensor1D values,
string label = "")Parameters
| name | type | default | description |
|---|---|---|---|
| times | Date & Time Array | — | When each value was taken. |
| values | Vector | — | The values. |
| label | Text | — | The line's name in the legend. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Trend Line Layer
FunctionA trend fitted to points.
TrendLine -> Chart Layer
x: Vector
y: Vector
kind: Trend Kind
degree: Integer
label: Text
showEquation: TruthLayer TrendLine(
DivookaTensor1D x,
DivookaTensor1D y,
TrendKind kind = TrendKind.Linear,
int degree = 2,
string label = "",
bool showEquation = false)Parameters
| name | type | default | description |
|---|---|---|---|
| x | Vector | — | The points' horizontal values. |
| y | Vector | — | The points' vertical values. |
| kind | Trend Kind | Linear | What kind of trend is fitted. |
| degree | Integer | 2 | A polynomial trend's degree. |
| label | Text | — | The trend's name in the legend. |
| showEquation | Truth | False | Whether the fitted equation is written on the chart. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics
Violin Layer
FunctionA violin of values, one per category when categories are given.
Violin(values: Vector, categories: Text Array) -> Chart Layer
Layer Violin(DivookaTensor1D values, string[] categories)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Vector | — | The values. |
| categories | Text Array | — | Each value's category; unset, one violin. |
Returns
| Layer | Chart Layer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Layers
- Package
- Data Analytics