Chart Style
11 nodes
On this page 11
Set Colour Map
FunctionA chart whose colours for quantities - heat maps, contours, points coloured by number - follow another colour map.
SetColorMap -> Figure
figure: Figure
map: Color Map Name
middle: NumberFigure SetColorMap(
Figure figure,
ColorMapName map = ColorMapName.Blues,
double middle = 0)Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| map | Color Map Name | Blues | The colour map. |
| middle | Number | 0 | The value a diverging map - Blue Red, Red Blue, Brown Teal, Spectral - puts its neutral middle at, so values above and below it take the two hues; a sequential map has no middle and ignores it. |
Returns
| Chart | Figure |
Remarks
An input of a document always holds a value, so the middle is a number rather than an optional one, and it is read only where it means something.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Font
FunctionA chart set in another font, falling back to the theme's own where it lacks a character.
SetFont(figure: Figure, family: Text) -> Figure
Figure SetFont(Figure figure, string family)
Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| family | Text | — | The font family's name, as installed. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Legend
FunctionA chart with its legend moved, shown or hidden.
SetLegend -> Figure
figure: Figure
position: Legend Position
show: TruthFigure SetLegend(
Figure figure,
LegendPosition position = LegendPosition.Right,
bool show = true)Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| position | Legend Position | Right | Where the legend sits. |
| show | Truth | True | Whether it is shown; a chart with one series has none unless this asks. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Palette
FunctionA chart whose series take their colours from another palette.
SetPalette(figure: Figure, palette: Palette Name) -> Figure
Figure SetPalette(
Figure figure,
PaletteName palette = PaletteName.Divooka)Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| palette | Palette Name | Divooka | The palette. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Size
FunctionA chart at another size, in pixels at 96 to the inch.
SetSize(figure: Figure, width: Number, height: Number) -> Figure
Figure SetSize(
Figure figure,
double width = 640,
double height = 400)Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| width | Number | 640 | Its width. |
| height | Number | 400 | Its height. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Theme
FunctionA chart in another look.
SetTheme(figure: Figure, theme: Chart Theme Name) -> Figure
Figure SetTheme(
Figure figure,
ChartThemeName theme = ChartThemeName.Light)Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| theme | Chart Theme Name | Light | The look. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Titles
FunctionA chart with a title, a line under it, and a note at its foot.
SetTitles -> Figure
figure: Figure
title: Text
subtitle: Text
caption: TextFigure SetTitles(
Figure figure,
string title = "",
string subtitle = "",
string caption = "")Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| title | Text | — | The title. |
| subtitle | Text | — | A line under the title saying what the chart shows. |
| caption | Text | — | A note at the foot: a source, a definition. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set X Axis
FunctionA chart with its horizontal axis changed.
SetXAxis -> Figure
figure: Figure
title: Text
scale: Scale Type
format: TextFigure SetXAxis(
Figure figure,
string title = "",
ScaleType scale = ScaleType.Auto,
string format = "")Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| title | Text | — | The axis' title; empty keeps the one it has. |
| scale | Scale Type | Auto | How values become positions: linear, logarithmic, dates, categories. |
| format | Text | — | How labels are written, as a D3 format: ",.0f", ".0%", "$,.2f", or for dates "%b %Y". |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set X Range
FunctionA chart whose horizontal axis runs over a range of your choosing rather than one fitted to the data.
SetXRange(figure: Figure, min: Number, max: Number) -> Figure
Figure SetXRange(Figure figure, double min = 0, double max = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| min | Number | 0 | The value at the axis' left end. |
| max | Number | 1 | The value at its right end. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Y Axis
FunctionA chart with its vertical axis changed.
SetYAxis -> Figure
figure: Figure
title: Text
scale: Scale Type
format: Text
includeZero: TruthFigure SetYAxis(
Figure figure,
string title = "",
ScaleType scale = ScaleType.Auto,
string format = "",
bool includeZero = false)Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| title | Text | — | The axis' title; empty keeps the one it has. |
| scale | Scale Type | Auto | How values become positions: linear, logarithmic, dates, categories. |
| format | Text | — | How labels are written, as a D3 format: ",.0f", ".0%", "$,.2f". |
| includeZero | Truth | False | Whether the axis reaches zero even when the data does not, so heights compare from a true baseline; off, it fits the data, except under bars and areas, which always start at zero. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics
Set Y Range
FunctionA chart whose vertical axis runs over a range of your choosing rather than one fitted to the data: the same range on several charts makes them comparable.
SetYRange(figure: Figure, min: Number, max: Number) -> Figure
Figure SetYRange(Figure figure, double min = 0, double max = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| figure | Figure | — | The chart. |
| min | Number | 0 | The value at the axis' bottom. |
| max | Number | 1 | The value at its top. |
Returns
| Chart | Figure |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Chart Style
- Package
- Data Analytics