Code interpreter
Run code in stateful kernels and read results, logs, errors and charts.
Every method shows the same operation in each SDK; pick a language once and every tab on the site follows it.
Execution
Section titled “Execution”What running a cell produced.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
error |
Optional[ExecutionError] |
|
execution_count |
Optional[int] |
|
logs |
Logs |
|
results |
List[Result] |
|
truncated |
bool |
| Property | Type | Description |
|---|---|---|
error |
ExecutionError |
|
executionCount |
number |
|
logs |
Logs |
|
results |
Result[] |
|
truncated |
boolean |
True when a bound cut the cell’s output (each stream keeps its first 32 KiB, a cell at most 2 rich results): logs and results are then incomplete; write a large output to a file and read it with files instead of printing it. |
| Property | Type | Description |
|---|---|---|
Error |
*ExecutionError |
|
ExecutionCount |
*int |
|
Logs |
Logs |
|
Results |
[]Result |
|
Truncated |
bool |
| Property | Type | Description |
|---|---|---|
error |
||
execution_count |
||
logs |
||
results |
||
truncated |
| Property | Type | Description |
|---|---|---|
error |
ExecutionError |
|
executionCount |
Integer |
|
logs |
Logs |
|
results |
List<Result> |
|
truncated |
boolean |
True when a bound cut the cell’s output: each stream keeps its first 32 KiB, a cell at most 2 rich results. What is in logs and results is then incomplete; write a large output to a file (and read it with files()) instead of printing it. |
constructor()
Section titled “constructor()”Not in the Python SDK’s Execution.
constructor(public results: Result[] = [], public logs: Logs = { stdout: [], stderr: [] }, public error?: ExecutionError, public executionCount?: number, /** True when a bound cut the cell's output (each stream keeps its first 32 KiB, a cell at most 2 rich results): `logs` and * `results` are then incomplete; write a large output to a file and read it with `files` instead of printing it. */ public truncated: boolean = false)| Parameter | Type | Default |
|---|---|---|
results |
Result[] |
[] |
logs |
Logs |
{ stdout: [], stderr: [] } |
error |
ExecutionError |
optional |
executionCount |
number |
optional |
truncated |
boolean |
false |
sdk/typescript/src/code-interpreter.ts:81Not in the Go SDK’s Execution.
Not in the Ruby SDK’s Execution.
Not in the Java SDK’s Execution.
initialize()
Section titled “initialize()”Not in the Python SDK’s Execution.
Not in the TypeScript SDK’s Execution.
Not in the Go SDK’s Execution.
def initialize(results: [], logs: Logs.new, error: nil, execution_count: nil, truncated: false)| Parameter | Type | Default |
|---|---|---|
results |
[] |
|
logs |
Logs.new |
|
error |
nil |
|
execution_count |
nil |
|
truncated |
false |
sdk/ruby/lib/svm/code_interpreter.rb:105Not in the Java SDK’s Execution.
text()
Section titled “text()”text: Optional[str]Property (read-only).
The text of the cell’s value, the main result, if it has one.
text: string | undefinedProperty (read-only).
The text of the cell’s value, the main result, if it has one.
func (e Execution) Text() stringText is the text of the cell’s value (its main result), or “” when it has none.
Returns string
sdk/go/interpreter.go:191def textThe text of the cell’s value, the main result, if it has one.
Source:sdk/ruby/lib/svm/code_interpreter.rb:110public String text()The text of the cell’s value, the main result, if it has one.
Returns String
sdk/java/src/main/java/dev/svm/sandbox/Execution.java:21to_h()
Section titled “to_h()”Not in the Python SDK’s Execution.
Not in the TypeScript SDK’s Execution.
Not in the Go SDK’s Execution.
def to_hsdk/ruby/lib/svm/code_interpreter.rb:115Not in the Java SDK’s Execution.
Result
Section titled “Result”One output of a cell: its value or something it displayed, in every representation the kernel gave.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
chart |
Optional[Chart] |
|
data |
Optional[dict] |
|
extra |
Optional[dict] |
|
html |
Optional[str] |
|
is_main_result |
bool |
|
javascript |
Optional[str] |
|
jpeg |
Optional[str] |
|
json |
Optional[Any] |
|
latex |
Optional[str] |
|
markdown |
Optional[str] |
|
pdf |
Optional[str] |
|
png |
Optional[str] |
|
svg |
Optional[str] |
|
text |
Optional[str] |
| Property | Type | Description |
|---|---|---|
chart |
Chart |
A matplotlib figure’s chart, typed (see charts.ts). |
data |
Record<string, unknown> |
|
extra |
Record<string, string> |
|
html |
string |
|
isMainResult |
boolean |
|
javascript |
string |
|
jpeg |
string |
|
json |
unknown |
|
latex |
string |
|
markdown |
string |
|
pdf |
string |
|
png |
string |
|
svg |
string |
|
text |
string |
| Property | Type | Description |
|---|---|---|
Chart |
Chart |
Chart is a matplotlib figure’s chart, typed (LineChart, BarChart, …; see charts.go); nil when there is none. |
Extra |
map[string]string |
|
HTML |
string |
|
IsMainResult |
bool |
|
JavaScript |
string |
|
JPEG |
string |
|
JSON |
any |
|
LaTeX |
string |
|
Markdown |
string |
|
PDF |
string |
|
PNG |
string |
|
SVG |
string |
|
Text |
string |
| Property | Type | Description |
|---|---|---|
exit_code |
||
stderr |
||
stdout |
||
timed_out |
| Property | Type | Description |
|---|---|---|
chart |
Chart |
A matplotlib figure’s chart, typed (Chart.LineChart and the other subclasses); null when there is none. |
extra |
Map<String, String> |
Representations of MIME types this class does not name, by MIME type; empty when there are none. |
html |
String |
|
isMainResult |
boolean |
|
javascript |
String |
|
jpeg |
String |
|
json |
Object |
The application/json output, parsed (the text when it is not JSON). |
latex |
String |
|
markdown |
String |
|
pdf |
String |
|
png |
String |
|
svg |
String |
|
text |
String |
Not in the Python SDK’s Result.
Not in the TypeScript SDK’s Result.
Not in the Go SDK’s Result.
Not in the Ruby SDK’s Result.
public Object get(String format)The named representation (text, html, png …), or null.
| Parameter | Type | Default |
|---|---|---|
format |
String |
Returns Object
sdk/java/src/main/java/dev/svm/sandbox/Result.java:64constructor()
Section titled “constructor()”Not in the Python SDK’s Result.
constructor(outputs: Record<string, string>, readonly isMainResult: boolean)| Parameter | Type | Default |
|---|---|---|
outputs |
Record<string, string> |
|
isMainResult |
boolean |
sdk/typescript/src/code-interpreter.ts:57Not in the Go SDK’s Result.
Not in the Ruby SDK’s Result.
Not in the Java SDK’s Result.
formats()
Section titled “formats()”def formats(self) -> List[str]Returns List[str]
sdk/python/svm/code_interpreter_models.py:76formats(): string[]Returns string[]
sdk/typescript/src/code-interpreter.ts:72func (r Result) Formats() []stringFormats names the representations the result has.
Returns []string
sdk/go/interpreter.go:119Not in the Ruby SDK’s Result.
public List<String> formats()The representations this result has, named as its fields, then the extra MIME types.
Returns List<String>
sdk/java/src/main/java/dev/svm/sandbox/Result.java:67from_mime_map()
Section titled “from_mime_map()”def from_mime_map(cls, outputs: Dict[str, str], *, main: bool) -> 'Result'| Parameter | Type | Default |
|---|---|---|
outputs |
Dict[str, str] |
|
main |
bool |
Returns 'Result'
sdk/python/svm/code_interpreter_models.py:83Not in the TypeScript SDK’s Result.
Not in the Go SDK’s Result.
Not in the Ruby SDK’s Result.
Not in the Java SDK’s Result.
success()
Section titled “success()”Not in the Python SDK’s Result.
Not in the TypeScript SDK’s Result.
Not in the Go SDK’s Result.
def success?sdk/ruby/lib/svm/sandbox.rb:328Not in the Java SDK’s Result.
Everything a cell printed.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
stderr |
List[str] |
|
stdout |
List[str] |
| Property | Type | Description |
|---|---|---|
stderr |
string[] |
|
stdout |
string[] |
| Property | Type | Description |
|---|---|---|
Stderr |
[]string |
|
Stdout |
[]string |
| Property | Type | Description |
|---|---|---|
stderr |
||
stdout |
| Property | Type | Description |
|---|---|---|
stderr |
List<String> |
|
stdout |
List<String> |
initialize()
Section titled “initialize()”Not in the Python SDK’s Logs.
Not in the TypeScript SDK’s Logs.
Not in the Go SDK’s Logs.
def initialize(stdout = [], stderr = [])| Parameter | Type | Default |
|---|---|---|
stdout |
[] |
|
stderr |
[] |
sdk/ruby/lib/svm/code_interpreter.rb:32Not in the Java SDK’s Logs.
OutputMessage
Section titled “OutputMessage”One line of stdout or stderr from a cell.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
error |
bool |
|
line |
str |
|
timestamp |
int |
| Property | Type | Description |
|---|---|---|
error |
boolean |
|
line |
string |
|
timestamp |
number |
| Property | Type | Description |
|---|---|---|
Error |
bool |
stderr |
Line |
string |
|
Timestamp |
int64 |
Unix epoch, nanoseconds |
| Property | Type | Description |
|---|---|---|
error |
||
line |
||
timestamp |
| Property | Type | Description |
|---|---|---|
error |
boolean |
|
line |
String |
|
timestamp |
long |
Unix epoch, nanoseconds. |
constructor()
Section titled “constructor()”Not in the Python SDK’s OutputMessage.
constructor(readonly line: string, readonly timestamp: number, readonly error: boolean)| Parameter | Type | Default |
|---|---|---|
line |
string |
|
timestamp |
number |
|
error |
boolean |
sdk/typescript/src/code-interpreter.ts:24Not in the Go SDK’s OutputMessage.
Not in the Ruby SDK’s OutputMessage.
Not in the Java SDK’s OutputMessage.
Context
Section titled “Context”A running kernel, which keeps its variables between cells.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
cwd |
str |
|
id |
str |
|
language |
str |
| Property | Type | Description |
|---|---|---|
cwd |
string |
|
id |
string |
|
language |
string |
| Property | Type | Description |
|---|---|---|
CWD |
string |
|
ID |
string |
|
Language |
string |
| Property | Type | Description |
|---|---|---|
cwd |
||
id |
||
language |
| Property | Type | Description |
|---|---|---|
cwd |
String |
|
id |
String |
|
language |
String |
initialize()
Section titled “initialize()”Not in the Python SDK’s Context.
Not in the TypeScript SDK’s Context.
Not in the Go SDK’s Context.
def initialize(id, language, cwd = "")| Parameter | Type | Default |
|---|---|---|
id |
||
language |
||
cwd |
"" |
sdk/ruby/lib/svm/code_interpreter.rb:37Not in the Java SDK’s Context.
ExecutionError
Section titled “ExecutionError”The error a cell ended with.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
name |
str |
|
traceback |
str |
|
value |
str |
| Property | Type | Description |
|---|---|---|
name |
string |
|
traceback |
string |
|
value |
string |
| Property | Type | Description |
|---|---|---|
Name |
string |
|
Traceback |
string |
|
Value |
string |
| Property | Type | Description |
|---|---|---|
name |
||
traceback |
||
value |
| Property | Type | Description |
|---|---|---|
name |
String |
|
traceback |
String |
|
value |
String |
constructor()
Section titled “constructor()”Not in the Python SDK’s ExecutionError.
constructor(readonly name: string, readonly value: string, readonly traceback: string)| Parameter | Type | Default |
|---|---|---|
name |
string |
|
value |
string |
|
traceback |
string |
sdk/typescript/src/code-interpreter.ts:29Not in the Go SDK’s ExecutionError.
Not in the Ruby SDK’s ExecutionError.
Not in the Java SDK’s ExecutionError.
error()
Section titled “error()”Not in the Python SDK’s ExecutionError.
Not in the TypeScript SDK’s ExecutionError.
func (e *ExecutionError) Error() stringReturns string
sdk/go/interpreter.go:57Not in the Ruby SDK’s ExecutionError.
Not in the Java SDK’s ExecutionError.
CodeInterpreterError
Section titled “CodeInterpreterError”The interpreter could not run the request (bad arguments, no kernel in the image, a timeout).
Properties
Section titled “Properties”Python exposes these as methods; see below.
TypeScript exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
Message |
string |
Ruby exposes these as methods; see below.
Not in the Java SDK.
error()
Section titled “error()”Not in the Python SDK’s CodeInterpreterError.
Not in the TypeScript SDK’s CodeInterpreterError.
func (e *CodeInterpreterError) Error() stringReturns string
sdk/go/interpreter.go:29Not in the Ruby SDK’s CodeInterpreterError.
Not in the Java SDK.
ExecutionTimeoutError
Section titled “ExecutionTimeoutError”A cell did not finish within its timeout.
error()
Section titled “error()”Not in the Python SDK’s ExecutionTimeoutError.
Not in the TypeScript SDK’s ExecutionTimeoutError.
func (e *CodeInterpreterError) Error() stringCodeInterpreterErrorReturns string
sdk/go/interpreter.go:29Not in the Ruby SDK’s ExecutionTimeoutError.
Not in the Java SDK.
unwrap()
Section titled “unwrap()”Not in the Python SDK’s ExecutionTimeoutError.
Not in the TypeScript SDK’s ExecutionTimeoutError.
func (e *ExecutionTimeoutError) Unwrap() errorReturns error
sdk/go/interpreter.go:34Not in the Ruby SDK’s ExecutionTimeoutError.
Not in the Java SDK.
A chart: type, title and its elements (what they are depends on the type).
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[Any] |
|
title |
Optional[str] |
|
type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
unknown[] |
|
title |
string | null |
|
type |
ChartType |
Go exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
| Property | Type | Description |
|---|---|---|
elements |
List<?> |
The elements: what they are depends on the type (PointData, BarData, PieData, BoxAndWhiskerData, charts, or raw values). |
title |
String |
The title, or null. |
type |
Type |
chart_type()
Section titled “chart_type()”Not in the Python SDK’s Chart.
Not in the TypeScript SDK’s Chart.
ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:40Not in the Ruby SDK’s Chart.
Not in the Java SDK’s Chart.
parse()
Section titled “parse()”Not in the Python SDK’s Chart.
Not in the TypeScript SDK’s Chart.
Not in the Go SDK’s Chart.
def parse(data)The typed chart for the kernel’s chart JSON; raises ArgumentError when it is not a chart object.
| Parameter | Type | Default |
|---|---|---|
data |
Raises ArgumentError
sdk/ruby/lib/svm/charts.rb:59public static Chart parse(Object data)The typed chart for the kernel’s chart JSON (parsed); throws IllegalArgumentException when it is not a chart object.
| Parameter | Type | Default |
|---|---|---|
data |
Object |
Returns Chart
sdk/java/src/main/java/dev/svm/sandbox/Chart.java:236to_map()
Section titled “to_map()”Not in the Python SDK’s Chart.
Not in the TypeScript SDK’s Chart.
Not in the Go SDK’s Chart.
Not in the Ruby SDK’s Chart.
public Map<String, Object> toMap()The chart as plain data.
Returns Map<String, Object>
sdk/java/src/main/java/dev/svm/sandbox/Chart.java:47Chart2D
Section titled “Chart2D”Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[Any] |
|
title |
Optional[str] |
|
type |
ChartType |
|
x_label |
Optional[str] |
|
x_unit |
Optional[str] |
|
y_label |
Optional[str] |
|
y_unit |
Optional[str] |
| Property | Type | Description |
|---|---|---|
elements |
unknown[] |
|
title |
string | null |
|
type |
ChartType |
|
x_label |
string | null |
|
x_unit |
string | null |
|
y_label |
string | null |
|
y_unit |
string | null |
Not in the Go SDK.
Not in the Ruby SDK.
Not in the Java SDK.
ChartType
Section titled “ChartType”Typed charts from a cell’s matplotlib figures (G25): Result.chart, read from the kernel’s application/vnd.svm.chart+json output.
The shape follows the reference vendor’s charts (field names as on the wire): Chart (type, title, elements), 2D charts add axis labels and units, point charts (LineChart, ScatterChart) add ticks and scales, and SuperChart holds one chart per axes of a figure with several. deserializeChart builds the right object from the JSON; a type it does not know is a plain chart of type unknown.
ScaleType
Section titled “ScaleType”ScaleType is an axis scale; “linear” when the kernel names none this SDK knows.
LineChart
Section titled “LineChart”LineChart and ScatterChart are point charts of their type.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[PointData] |
|
title |
Optional[str] |
|
type |
ChartType |
|
x_label |
Optional[str] |
|
x_scale |
ScaleType |
|
x_tick_labels |
List[str] |
|
x_ticks |
List[Coordinate] |
|
x_unit |
Optional[str] |
|
y_label |
Optional[str] |
|
y_scale |
ScaleType |
|
y_tick_labels |
List[str] |
|
y_ticks |
List[Coordinate] |
|
y_unit |
Optional[str] |
| Property | Type | Description |
|---|---|---|
elements |
PointData[] |
|
title |
string | null |
|
type |
ChartType.LINE |
|
x_label |
string | null |
|
x_scale |
ScaleType |
|
x_tick_labels |
string[] |
|
x_ticks |
Coordinate[] |
|
x_unit |
string | null |
|
y_label |
string | null |
|
y_scale |
ScaleType |
|
y_tick_labels |
string[] |
|
y_ticks |
Coordinate[] |
|
y_unit |
string | null |
Go exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
||
x_label |
||
x_scale |
||
x_tick_labels |
||
x_ticks |
||
x_unit |
||
y_label |
||
y_scale |
||
y_tick_labels |
||
y_ticks |
||
y_unit |
Not in the Java SDK.
chart_type()
Section titled “chart_type()”Not in the Python SDK’s LineChart.
Not in the TypeScript SDK’s LineChart.
func (c LineChart) ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:77Not in the Ruby SDK’s LineChart.
Not in the Java SDK.
ScatterChart
Section titled “ScatterChart”LineChart and ScatterChart are point charts of their type.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[PointData] |
|
title |
Optional[str] |
|
type |
ChartType |
|
x_label |
Optional[str] |
|
x_scale |
ScaleType |
|
x_tick_labels |
List[str] |
|
x_ticks |
List[Coordinate] |
|
x_unit |
Optional[str] |
|
y_label |
Optional[str] |
|
y_scale |
ScaleType |
|
y_tick_labels |
List[str] |
|
y_ticks |
List[Coordinate] |
|
y_unit |
Optional[str] |
| Property | Type | Description |
|---|---|---|
elements |
PointData[] |
|
title |
string | null |
|
type |
ChartType.SCATTER |
|
x_label |
string | null |
|
x_scale |
ScaleType |
|
x_tick_labels |
string[] |
|
x_ticks |
Coordinate[] |
|
x_unit |
string | null |
|
y_label |
string | null |
|
y_scale |
ScaleType |
|
y_tick_labels |
string[] |
|
y_ticks |
Coordinate[] |
|
y_unit |
string | null |
Go exposes these as methods; see below.
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
||
x_label |
||
x_scale |
||
x_tick_labels |
||
x_ticks |
||
x_unit |
||
y_label |
||
y_scale |
||
y_tick_labels |
||
y_ticks |
||
y_unit |
Not in the Java SDK.
chart_type()
Section titled “chart_type()”Not in the Python SDK’s ScatterChart.
Not in the TypeScript SDK’s ScatterChart.
func (c ScatterChart) ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:78Not in the Ruby SDK’s ScatterChart.
Not in the Java SDK.
PointChart
Section titled “PointChart”PointChart is what LineChart and ScatterChart share.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[PointData] |
|
title |
Optional[str] |
|
type |
ChartType |
|
x_label |
Optional[str] |
|
x_scale |
ScaleType |
|
x_tick_labels |
List[str] |
|
x_ticks |
List[Coordinate] |
|
x_unit |
Optional[str] |
|
y_label |
Optional[str] |
|
y_scale |
ScaleType |
|
y_tick_labels |
List[str] |
|
y_ticks |
List[Coordinate] |
|
y_unit |
Optional[str] |
| Property | Type | Description |
|---|---|---|
elements |
PointData[] |
|
title |
string | null |
|
type |
ChartType |
|
x_label |
string | null |
|
x_scale |
ScaleType |
|
x_tick_labels |
string[] |
|
x_ticks |
Coordinate[] |
|
x_unit |
string | null |
|
y_label |
string | null |
|
y_scale |
ScaleType |
|
y_tick_labels |
string[] |
|
y_ticks |
Coordinate[] |
|
y_unit |
string | null |
| Property | Type | Description |
|---|---|---|
Elements |
[]PointData |
|
Title |
string |
|
Type |
ChartType |
|
XScale |
ScaleType |
|
XTickLabels |
[]string |
|
XTicks |
[]any |
|
YScale |
ScaleType |
|
YTickLabels |
[]string |
|
YTicks |
[]any |
Not in the Ruby SDK.
Not in the Java SDK.
PointData
Section titled “PointData”One series: its label and points as (x, y); a coordinate is a number, an ISO time on a datetime axis or a name on a categorical one.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
label |
str |
|
points |
List[Tuple[Coordinate, Coordinate]] |
| Property | Type | Description |
|---|---|---|
label |
string |
|
points |
Array<[Coordinate, Coordinate]> |
| Property | Type | Description |
|---|---|---|
Label |
string |
|
Points |
[][2]any |
| Property | Type | Description |
|---|---|---|
label |
||
points |
Not in the Java SDK.
BarChart
Section titled “BarChart”BarChart is a bar chart.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[BarData] |
|
title |
Optional[str] |
|
type |
ChartType |
|
x_label |
Optional[str] |
|
x_unit |
Optional[str] |
|
y_label |
Optional[str] |
|
y_unit |
Optional[str] |
| Property | Type | Description |
|---|---|---|
elements |
BarData[] |
|
title |
string | null |
|
type |
ChartType.BAR |
|
x_label |
string | null |
|
x_unit |
string | null |
|
y_label |
string | null |
|
y_unit |
string | null |
| Property | Type | Description |
|---|---|---|
Elements |
[]BarData |
|
Title |
string |
|
Type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
||
x_label |
||
x_unit |
||
y_label |
||
y_unit |
Not in the Java SDK.
chart_type()
Section titled “chart_type()”Not in the Python SDK’s BarChart.
Not in the TypeScript SDK’s BarChart.
func (c BarChart) ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:95Not in the Ruby SDK’s BarChart.
Not in the Java SDK.
BarData
Section titled “BarData”BarData is one bar: its label, group and value (text, as the reference vendor has it).
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
group |
str |
|
label |
str |
|
value |
str |
| Property | Type | Description |
|---|---|---|
group |
string |
|
label |
string |
|
value |
string |
| Property | Type | Description |
|---|---|---|
Group |
string |
|
Label |
string |
|
Value |
string |
| Property | Type | Description |
|---|---|---|
group |
||
label |
||
value |
Not in the Java SDK.
PieChart
Section titled “PieChart”PieChart is a pie chart.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[PieData] |
|
title |
Optional[str] |
|
type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
PieData[] |
|
title |
string | null |
|
type |
ChartType.PIE |
| Property | Type | Description |
|---|---|---|
Elements |
[]PieData |
|
Title |
string |
|
Type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
Not in the Java SDK.
chart_type()
Section titled “chart_type()”Not in the Python SDK’s PieChart.
Not in the TypeScript SDK’s PieChart.
func (c PieChart) ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:111Not in the Ruby SDK’s PieChart.
Not in the Java SDK.
PieData
Section titled “PieData”PieData is one wedge.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
angle |
float |
|
label |
str |
|
radius |
float |
| Property | Type | Description |
|---|---|---|
angle |
number |
|
label |
string |
|
radius |
number |
| Property | Type | Description |
|---|---|---|
Angle |
float64 |
|
Label |
string |
|
Radius |
float64 |
| Property | Type | Description |
|---|---|---|
angle |
||
label |
||
radius |
Not in the Java SDK.
BoxAndWhiskerChart
Section titled “BoxAndWhiskerChart”BoxAndWhiskerChart is a box-and-whisker chart.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[BoxAndWhiskerData] |
|
title |
Optional[str] |
|
type |
ChartType |
|
x_label |
Optional[str] |
|
x_unit |
Optional[str] |
|
y_label |
Optional[str] |
|
y_unit |
Optional[str] |
| Property | Type | Description |
|---|---|---|
elements |
BoxAndWhiskerData[] |
|
title |
string | null |
|
type |
ChartType.BOX_AND_WHISKER |
|
x_label |
string | null |
|
x_unit |
string | null |
|
y_label |
string | null |
|
y_unit |
string | null |
| Property | Type | Description |
|---|---|---|
Elements |
[]BoxAndWhiskerData |
|
Title |
string |
|
Type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
||
x_label |
||
x_unit |
||
y_label |
||
y_unit |
Not in the Java SDK.
chart_type()
Section titled “chart_type()”Not in the Python SDK’s BoxAndWhiskerChart.
Not in the TypeScript SDK’s BoxAndWhiskerChart.
func (c BoxAndWhiskerChart) ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:132Not in the Ruby SDK’s BoxAndWhiskerChart.
Not in the Java SDK.
BoxAndWhiskerData
Section titled “BoxAndWhiskerData”BoxAndWhiskerData is one box.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
first_quartile |
float |
|
label |
str |
|
max |
float |
|
median |
float |
|
min |
float |
|
outliers |
List[float] |
|
third_quartile |
float |
| Property | Type | Description |
|---|---|---|
first_quartile |
number |
|
label |
string |
|
max |
number |
|
median |
number |
|
min |
number |
|
outliers |
number[] |
|
third_quartile |
number |
| Property | Type | Description |
|---|---|---|
FirstQuartile |
float64 |
|
Label |
string |
|
Max |
float64 |
|
Median |
float64 |
|
Min |
float64 |
|
Outliers |
[]float64 |
|
ThirdQuartile |
float64 |
| Property | Type | Description |
|---|---|---|
first_quartile |
||
label |
||
max |
||
median |
||
min |
||
outliers |
||
third_quartile |
Not in the Java SDK.
SuperChart
Section titled “SuperChart”SuperChart holds one chart per axes of a figure with several.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
elements |
List[Chart] |
|
title |
Optional[str] |
|
type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
ChartTypes[] |
|
title |
string | null |
|
type |
ChartType.SUPERCHART |
| Property | Type | Description |
|---|---|---|
Elements |
[]Chart |
|
Title |
string |
|
Type |
ChartType |
| Property | Type | Description |
|---|---|---|
elements |
||
title |
||
type |
Not in the Java SDK.
chart_type()
Section titled “chart_type()”Not in the Python SDK’s SuperChart.
Not in the TypeScript SDK’s SuperChart.
func (c SuperChart) ChartType() ChartTypeReturns ChartType
sdk/go/charts.go:141Not in the Ruby SDK’s SuperChart.
Not in the Java SDK.