create-table
Generate table images by specifying data, columns, and styling options. Obtain a table image URL or save it directly to a file for easy integration or sharing.
Instructions
Create table images using QuickChart - get table image URL or save table image to file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Whether to get table URL or save as file | |
data | Yes | Table data with title, columns, and dataSource | |
options | No | Table styling options | |
outputPath | No | Path where to save the file (only used with action=save_file) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "Whether to get table URL or save as file",
"enum": [
"get_url",
"save_file"
],
"type": "string"
},
"data": {
"description": "Table data with title, columns, and dataSource",
"properties": {
"columns": {
"description": "Column definitions",
"items": {
"properties": {
"align": {
"description": "Text alignment",
"enum": [
"left",
"center",
"right"
],
"type": "string"
},
"dataIndex": {
"description": "Data property key",
"type": "string"
},
"title": {
"description": "Column header title",
"type": "string"
},
"width": {
"description": "Column width",
"type": "integer"
}
},
"required": [
"title",
"dataIndex"
],
"type": "object"
},
"type": "array"
},
"dataSource": {
"description": "Table data rows",
"items": {
"description": "Row data object with keys matching column dataIndex values",
"type": "object"
},
"type": "array"
},
"title": {
"description": "Table title",
"type": "string"
}
},
"required": [
"columns",
"dataSource"
],
"type": "object"
},
"options": {
"description": "Table styling options",
"properties": {
"backgroundColor": {
"description": "Background color",
"type": "string"
},
"borderColor": {
"description": "Border color",
"type": "string"
},
"cellHeight": {
"description": "Cell height in pixels",
"type": "integer"
},
"cellWidth": {
"description": "Cell width in pixels",
"type": "integer"
},
"fontFamily": {
"description": "Font family",
"type": "string"
},
"fontSize": {
"description": "Font size",
"type": "integer"
},
"headerColor": {
"description": "Header background color",
"type": "string"
},
"offsetLeft": {
"description": "Left offset in pixels",
"type": "integer"
},
"offsetRight": {
"description": "Right offset in pixels",
"type": "integer"
}
},
"type": "object"
},
"outputPath": {
"description": "Path where to save the file (only used with action=save_file)",
"type": "string"
}
},
"required": [
"action",
"data"
],
"type": "object"
}