Divooka Reference

Chart Export

5 nodes

On this page 5

Chart Count

Function

How many charts a figure holds.

Signature
ChartCount(figure: Figure) -> Integer
int ChartCount(Figure figure)

Parameters

nametypedefaultdescription
figureFigure—The figure.

Returns

CountInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Chart Export
Package
Data Analytics

Chart to Image

Function

A chart as a picture, to preview, compose with other images, or process further.

Signature
ChartToImage(figure: Figure, DPI: Number) -> Pixel Image
PixelImage ChartToImage(Figure figure, double dpi = 96)

Parameters

nametypedefaultdescription
figureFigure—The chart.
DPINumber96The resolution in dots per inch: 96 is one pixel per chart pixel.

Returns

ImagePixel Image
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Chart Export
Package
Data Analytics

Chart to SVG Text

Function

A chart as SVG text, for a web page or a file of your own.

Signature
ChartToSvg(figure: Figure) -> Text
string ChartToSvg(Figure figure)

Parameters

nametypedefaultdescription
figureFigure—The chart.

Returns

SVGText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Chart Export
Package
Data Analytics

Chart Width

Function

The width a chart is drawn at, in pixels at 96 to the inch.

Signature
ChartWidth(figure: Figure) -> Number
double ChartWidth(Figure figure)

Parameters

nametypedefaultdescription
figureFigure—The chart.

Returns

WidthNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Chart Export
Package
Data Analytics

Save Chart

Function

Saves a chart to a file whose extension says the format: a picture (.png), a drawing (.svg, .pdf), or a PowerPoint deck, an Excel workbook or a Word document (.pptx, .xlsx, .docx) holding the application's own chart with its data, to restyle and edit there. Written As says what went into the file - for an Office file, which charts are the application's own and which are pictures of a kind it has no chart for.

Signature
SaveChart -> (Path: Text, writtenAs: Text)
    figure: Figure
    path: Text
    DPI: Number
string SaveChart(
    Figure figure,
    string path,
    out string writtenAs,
    double dpi = 96)

Parameters

nametypedefaultdescription
figureFigure—The chart.
pathText—Where to save it; folders are made as needed.
DPINumber96A PNG's resolution in dots per inch: 96 is one pixel per chart pixel, 192 twice as sharp.

Returns

PathText
writtenAsText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Chart Export
Package
Data Analytics