Skip to content

simpleTextObject operations

3 min read · Updated 29 Oct 2026

Reference for @astrato-io/visualizations@0.6.5.

All visualization types

Use each schema below for the request’s payload, not for the whole operation request. Names and payloads are specific to this visualization type. An operation can still require particular fields or chart state; see its description.

Rich text max lines

Set the maximum visible Rich text lines when responsive overflow is disabled.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Rich text max lines schema",
"type": "number",
"minimum": 0
}

Responsive rich text

Enable responsive Rich text overflow. When disabled, Rich text uses ellipsis and max lines.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Responsive rich text enabled schema",
"type": "boolean"
}

Background blur

Set background blur in pixels.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text background blur schema",
"type": "number",
"minimum": 0,
"maximum": 10
}

Background color

Set the background color. Use null for transparent background.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text background color schema",
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}

Background image

Set the background image URL.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text background image schema",
"type": "string"
}

Background image fit

Set how the background image fits inside the text object.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text background image fit schema",
"type": "string",
"enum": ["contain", "cover", "fill", "none"]
}

Background image opacity

Set background image opacity from 0 to 1.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"minimum": 0,
"maximum": 100,
"description": "Background image opacity from 0 to 1, where 0 is transparent and 1 is fully opaque",
"title": "Text background image opacity schema"
}

Background type

Set the text object background type to color or image.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text background type schema",
"type": "string",
"enum": ["image", "color"]
}

Border color

Set the border color.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text border color schema",
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}

Border enabled

Enable or disable the text object border.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text border enabled schema",
"type": "boolean"
}

Border radius

Set the border radius in pixels.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text border radius schema",
"type": "number",
"minimum": 0,
"maximum": 100
}

Border style

Set the border style to line or dashed.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string",
"enum": ["line", "dashed"],
"description": "Border style. Dotted is not exposed because the text object currently renders dotted as dashed.",
"title": "Text border style schema"
}

Border width

Set the border width in pixels.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text border width schema",
"type": "number",
"minimum": 1,
"maximum": 20
}

Text color

Set the text color. Use null to return to inherited or theme color.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text color schema",
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
}

Text content

Set text content and optionally choose whether it is rendered as plain text, HTML, or Markdown. This switches the object to text content mode.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"textContent": {
"type": "string",
"description": "Text content to display"
},
"representation": {
"description": "How to render the text content: plain text, HTML, or Markdown",
"type": "string",
"enum": ["text", "html", "markdown"]
}
},
"required": ["textContent"],
"additionalProperties": false,
"title": "Text content schema"
}

Bind text content to variable

Bind the displayed text to an existing workbook variable by its exact name and switch to variable content mode. The text updates when the variable value changes. Boolean variables are not supported. This does not change the variable’s value. Use null to clear the binding without changing the content mode; use setTextContent to return to static text.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "null"
}
],
"title": "Text content variable name schema"
}

Font family

Set the text font family. Use null to return to the theme default.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text font family schema",
"type": ["string", "null"]
}

Font size

Set the text font size.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text font size schema",
"type": "number",
"minimum": 1,
"maximum": 999
}

Font style

Set text font style flags such as bold, italic, underline, strikethrough, and weight.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"bold": {
"type": "boolean"
},
"weight": {
"type": "number"
},
"italic": {
"type": "boolean"
},
"underlined": {
"type": "boolean"
},
"strikethrough": {
"type": "boolean"
}
},
"additionalProperties": false,
"title": "Text font style schema"
}

Font weight

Set the text font weight.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"title": "Text font weight schema"
}

Horizontal align

Set horizontal text alignment.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text horizontal align schema",
"type": "string",
"enum": ["left", "center", "justify", "right"]
}

Letter spacing

Set text letter spacing in pixels.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text letter spacing schema",
"type": "number",
"minimum": 0,
"maximum": 10
}

Line spacing

Set text line spacing.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text line spacing schema",
"type": "number",
"minimum": 1,
"maximum": 3
}

Link enabled

Enable or disable link behavior for plain text content.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text link enabled schema",
"type": "boolean"
}

Link URL

Set the URL used when link behavior is enabled.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text link URL schema",
"type": "string"
}

Max lines

Set the maximum visible lines when responsive text is disabled.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text max lines schema",
"type": "number",
"minimum": 0
}

Object shadow

Enable or disable object shadow.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text object shadow schema",
"type": "boolean"
}

Text padding

Set text padding inside the object.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text padding schema",
"type": "number",
"minimum": 0,
"maximum": 100
}

Paragraph margin

Set paragraph margin for Markdown text.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text paragraph margin schema",
"type": "number",
"minimum": 0,
"maximum": 32
}

Text representation

Set whether text content is rendered as plain text, HTML, or Markdown.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text representation schema",
"type": "string",
"enum": ["text", "html", "markdown"]
}

Responsive text

Enable responsive text. When disabled, text uses ellipsis and max lines. When enabled, text can scale with workbook or fit the object.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Responsive text enabled schema",
"type": "boolean"
}

Text scaling

Set responsive text scaling mode.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text scaling schema",
"type": "string",
"enum": ["none", "viewportWidth", "fitToObject"]
}

Text shadow

Enable or disable text shadow.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text shadow schema",
"type": "boolean"
}

Vertical align

Set vertical text alignment inside the object.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text vertical align schema",
"type": "string",
"enum": ["auto", "top", "middle", "bottom"]
}

Word wrap

Enable or disable text word wrapping.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Text word wrap schema",
"type": "boolean"
}