Vector kit command
graph.add
Create Graph
Creates a graph (column, bar, line, area, scatter, pie, radar) in a box from series, categories and rows or CSV; answers its id.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
categories | any[] | no | |
csv | string | no | |
height | number | no | |
rows | any[][] | no | [[number|null]] |
series | any[] | no | |
type | "column" | "stackedColumn" | "bar" | "stackedBar" | "line" | "area" | "scatter" | "pie" | "radar" | no | |
width | number | no | |
x | number | no | |
y | number | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "graph.add" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: categories, csv, height, rows, series, type, width, x, y. vector_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"categories": {
"items": {},
"type": "array"
},
"csv": {
"type": "string"
},
"height": {
"type": "number"
},
"rows": {
"description": "[[number|null]]",
"items": {
"items": {},
"type": "array"
},
"type": "array"
},
"series": {
"items": {},
"type": "array"
},
"type": {
"enum": [
"column",
"stackedColumn",
"bar",
"stackedBar",
"line",
"area",
"scatter",
"pie",
"radar"
],
"type": "string"
},
"width": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"returns": "{id}; an empty CSV cell or a null is a blank value, a number in straight quotes is a label",
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.